Skip to content

Commit 43e9ab4

Browse files
committed
CI: Run from any branch
1 parent 7c23e86 commit 43e9ab4

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ os:
1414

1515
dist : xenial
1616

17-
branches:
18-
only:
19-
- master
20-
- develop
21-
2217
env:
2318
matrix:
2419
- BOGUS_JOB=true
@@ -314,7 +309,8 @@ matrix:
314309

315310
install:
316311
- cd ..
317-
- git clone -b $TRAVIS_BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
312+
- export BRANCH=`echo $TRAVIS_BRANCH | sed '/master/!s/.*/develop/'`
313+
- git clone -b $BRANCH --depth 1 https://github.com/boostorg/boost.git boost-root
318314
- cd boost-root
319315
- git submodule update --init tools/build
320316
- git submodule update --init tools/boost_install

appveyor.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ version: 1.0.{build}-{branch}
66

77
shallow_clone: true
88

9-
branches:
10-
only:
11-
- master
12-
- develop
13-
149
platform:
1510
- x64
1611

@@ -56,7 +51,8 @@ environment:
5651

5752
install:
5853
- cd ..
59-
- git clone -b %APPVEYOR_REPO_BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
54+
- if "%APPVEYOR_REPO_BRANCH%" == "master" (set BRANCH=master) else (set BRANCH=develop)
55+
- git clone -b %BRANCH% --depth 1 https://github.com/boostorg/boost.git boost-root
6056
- cd boost-root
6157
- git submodule update --init tools/build
6258
- git submodule update --init tools/boost_install

0 commit comments

Comments
 (0)