From 52afdf1cbd46ce8974d7880acf6414214882a496 Mon Sep 17 00:00:00 2001 From: Faruk D Date: Thu, 1 Mar 2018 16:58:01 +0100 Subject: [PATCH] set environment variable with docker exec --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5f4cfa..7a3319c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,6 @@ before_install: script: - export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi) - echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH" - - docker exec ubuntu-build export BRANCH=$BRANCH - docker exec ubuntu-build apt-get update -y - docker exec ubuntu-build apt-get install software-properties-common -y - docker exec ubuntu-build add-apt-repository -s ppa:kernsuite/kern-3 -y @@ -25,9 +24,10 @@ script: - docker exec ubuntu-build apt-get update -y - docker exec ubuntu-build apt-get install -y git cmake g++ pkg-config libcfitsio-bin libcfitsio-dev libopenblas-base libopenblas-dev wcslib-dev wcslib-tools libglib2.0-dev libcasa-casa2 casacore-dev casacore-data casacore-tools - | - docker exec ubuntu-build \ + docker exec ubuntu-build --env BRANCH=$BRANCH \ echo "Building SageCal" && \ - cd /home && \ + echo "Branch --> $BRANCH" && \ + cd / && \ git clone -b $BRANCH https://github.com/nlesc-dirac/sagecal.git && \ cd sagecal && \ mkdir build && cd build && \