set environment variable with docker exec
This commit is contained in:
parent
91efc062ae
commit
52afdf1cbd
|
@ -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 && \
|
||||
|
|
Loading…
Reference in New Issue