Skip to content

Commit

Permalink
Make LTS parametrized, so it's easier to upgrade (purescript#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-f authored May 31, 2019
1 parent 7bb5ac2 commit 01aaa15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 01aaa15

Please sign in to comment.