on master help sign in
temporarily disable darwin build to prime the darwin cache

separate stack GHC installation and test phases

commit18f736a21a80cf57e97ce6678ed301dfcd041054 authorAgentM <agentm@themactionfaction.com> dateSat 6 Jan 2018, 22:16 (9 years ago) parent1e41236
1 file changed+11−7
.travis.yml+11−7
.travis.yml+11−7
@@ -41,20 +41,24 @@ install:
4141# Here starts the actual work to be performed for the package under test;
4242# any command which exits with a non-zero exit code causes the build to fail.
4343script:
44− - GHC_OPTIONS=""
45− - |
46− set -ex
44+ - | set -ex
4745 # Run tests
4846 if [ "$(uname)" = "Darwin" ]; then
49− stack --install-ghc --no-terminal test --ghc-options="$GHC_OPTIONS"
47+ stack --install-ghc --no-terminal setup
48+ else
49+ echo Using pre-installed GHC on Linux.
50+ fi
51+ - |
52+ if [ "$(uname)" = "Darwin" ]; then
53+ #stack --install-ghc --no-terminal test #temporarily disable test to prime the cache
5054 else
51− stack --no-install-ghc --system-ghc --no-terminal test --ghc-options="$GHC_OPTIONS"
55+ stack --no-install-ghc --system-ghc --no-terminal test
5256 fi
53− set +ex
57+
5458
5559after_success:
5660 - |
5761 # Build and ship binary
58− ./.travis/attach-binary.sh
62+ #./.travis/attach-binary.sh
5963
6064# EOF