Skip to content

Commit b29a155

Browse files
committed
Forward TRAVIS_BRANCH env var from Travis to Docker
1 parent 8a2d7e1 commit b29a155

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ before_install:
1212

1313
script:
1414
- chmod u+x $TRAVIS_BUILD_DIR/tests/travis/script.sh
15-
- docker run -v $TRAVIS_BUILD_DIR:/pdalc -t simverge/pdalc-build-deps:alpine /pdalc/tests/travis/script.sh
15+
- docker run -e TRAVIS_BRANCH -v $TRAVIS_BUILD_DIR:/pdalc -t simverge/pdalc-build-deps:alpine /pdalc/tests/travis/script.sh

tests/travis/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export BUILD_TYPE=Release
99
uname -p
1010

1111
export TARGET_PLATFORM=`uname`-$BUILD_TYPE
12-
#echo "Building $CI_PROJECT_NAME ($TRAVIS_BRANCH branch) for $TARGET_PLATFORM"
12+
echo "Building $CI_PROJECT_NAME ($TRAVIS_BRANCH branch) for $TARGET_PLATFORM"
1313
rm -rf "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"
1414
mkdir -p "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"
1515
cd "$CI_PROJECT_DIR/build/$TARGET_PLATFORM"

0 commit comments

Comments
 (0)