diff --git a/.travis.yml b/.travis.yml index f1162d3e4..623e0e82b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ services: matrix: include: # Build on Linux with docker - - env: BUILD=stack ARGS="" PURS_OS="linux64" + - env: BUILD=stack ARGS="" PURS_OS="linux64" IMAGE_TAG=lts-12 compiler: ": #stack default" # Build on macOS natively @@ -47,8 +47,8 @@ before_install: echo 'remote-repo-cache: $HOME/.cabal/packages' >> $HOME/.cabal/config else - docker pull nilrecurring/haskell-lavello:lts-12 - docker run --mount src="$(pwd)",target=/home/ubuntu/spago,type=bind nilrecurring/haskell-lavello:lts-12 /bin/bash -c "sudo chown -R ubuntu spago; cd spago; stack build" + docker pull "nilrecurring/haskell-lavello:${IMAGE_TAG}" + docker run --mount src="$(pwd)",target=/home/ubuntu/spago,type=bind "nilrecurring/haskell-lavello:${IMAGE_TAG}" /bin/bash -c "sudo chown -R ubuntu spago; cd spago; stack build" fi @@ -82,7 +82,7 @@ script: stack build --test --no-run-tests --copy-bins --local-bin-path ./artifacts; else docker run --mount src="$(pwd)",target=/home/ubuntu/spago,type=bind \ - nilrecurring/haskell-lavello:lts-12 /bin/bash -c \ + "nilrecurring/haskell-lavello:${IMAGE_TAG}" /bin/bash -c \ 'cd spago && stack build --test --no-run-tests --copy-bins --local-bin-path ./artifacts' fi nvm install 10 && nvm use 10 @@ -113,7 +113,7 @@ before_deploy: sed -e "s/NPM_VERSION/$(./scripts/get-npm-version)/g" -i "" npm/package.json ; sed -e "s/PACKAGE_VERSION/$(./scripts/get-version)/g" -i "" npm/install.js ; else - docker run --mount src="$(pwd)",target=/home/ubuntu/spago,type=bind nilrecurring/haskell-lavello:lts-12 /bin/bash -c "cd spago; stack build --copy-bins --local-bin-path ./artifacts" + docker run --mount src="$(pwd)",target=/home/ubuntu/spago,type=bind "nilrecurring/haskell-lavello:${IMAGE_TAG}" /bin/bash -c "cd spago; stack build --copy-bins --local-bin-path ./artifacts" sed -e "s/NPM_VERSION/$(./scripts/get-npm-version)/g" -i npm/package.json ; sed -e "s/PACKAGE_VERSION/$(./scripts/get-version)/g" -i npm/install.js ; fi