@@ -1,5 +1,5 @@
1# For more information, see https://github.com/ChrisPenner/haskell-stack-travis-ci
1# For more information, see https://github.com/ChrisPenner/haskell-stack-travis-ci
2−language: nix
2+language: c
@@ -15,45 +15,46 @@ cache:
16 fast_finish: true
16 fast_finish: true
18− - env: GHCVER=7.10.3 CACHE_NAME=7.10.3
18+ - env: CACHE_NAME=7.10.3 STACK_YAML=stack.ghc7.10.yaml GHC_VERSION=7.10.3
19 compiler: ": #stack 7.10.3"
19 compiler: ": #stack 7.10.3"
20 addons: {apt: {packages: [ghc-7.10.3], sources: [hvr-ghc]}}
20 addons: {apt: {packages: [ghc-7.10.3], sources: [hvr-ghc]}}
22− - env: GHCVER=8.0.2 CACHE_NAME=8.0.2
22+ - env: CACHE_NAME=8.0.2 STACK_YAML=stack.yaml GHC_VERSION=8.0.2
23 compiler: ": #stack 8.0.2"
23 compiler: ": #stack 8.0.2"
24 addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
24 addons: {apt: {packages: [ghc-8.0.2], sources: [hvr-ghc]}}
26− - env: GHCVER=8.2.1 CACHE_NAME=8.2.1 BUILD_BINARY=1
26+ - env: CACHE_NAME=osx-7.10.3 STACK_YAML=stack.ghc7.10.yaml
27− compiler: ": #stack 8.2.1"
29+ compiler: ": #stack 7.10.3"
28− addons: {apt: {packages: [ghc-8.2.1], sources: [hvr-ghc]}}
30− - env: GHCVER=8.0.2 CACHE_NAME=8.0.2-osx BUILD_BINARY=1
31+ - env: CACHE_NAME=osx-8.0.2 STACK_YAML=stack.yaml
32 compiler: ": #stack 8.0.2"
33 compiler: ": #stack 8.0.2"
35−# - env: GHCVER=8.2.1 CACHE_NAME=8.2.1-osx BUILD_BINARY=1
37−# compiler: ": #stack 8.2.1"
38−# addons: {apt: {packages: [ghc-8.2.1], sources: [hvr-ghc]}}
41 - unset CC
36 - unset CC
42− - export PATH=$HOME/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
37+ - export PATH=$HOME/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
43 - ./.travis/install-ghr.sh
38 - ./.travis/install-ghr.sh
44 - ./.travis/install-stack.sh
39 - ./.travis/install-stack.sh
46# Here starts the actual work to be performed for the package under test;
41# Here starts the actual work to be performed for the package under test;
47# any command which exits with a non-zero exit code causes the build to fail.
42# any command which exits with a non-zero exit code causes the build to fail.
49− - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
44+ - GHC_OPTIONS=""
50− - stack --no-terminal --system-ghc build
45+ - |
51− - stack --no-terminal --system-ghc test
46+ set -ex
52− - stack --no-terminal --system-ghc haddock
47+ # Run tests
53−
48+ if [ "$(uname)" = "Darwin" ]; then
49+ stack --install-ghc --no-terminal test --ghc-options="$GHC_OPTIONS"
51+ stack --no-install-ghc --system-ghc --no-terminal test --ghc-options="$GHC_OPTIONS"
54−#after_success:
55+after_success:
56−# # Build and ship binary
57+ # Build and ship binary
57−# ./.travis/attach-binary.sh
58+ ./.travis/attach-binary.sh