on 7_streamly help sign in
project-m36/.travis.yml
60 lines 1.5 kB history raw
1# For more information, see https://github.com/ChrisPenner/haskell-stack-travis-ci
2language: c
3sudo: false
5git:
6 submodules: false # whether to recursively clone submodules
8cache:
9 directories:
10 - $HOME/.ghc
11 - $HOME/.cabal
12 - $HOME/.stack
13 - .stack-work
14 timeout: 1000
16matrix:
17 fast_finish: true
18 include:
19 - env: CACHE_NAME=7.10.3 STACK_YAML=stack.ghc7.10.yaml
20 compiler: ": #stack 7.10.3"
22 - env: CACHE_NAME=8.0.2 STACK_YAML=stack.yaml
23 compiler: ": #stack 8.0.2"
25 - env: CACHE_NAME=osx-8.0.2 STACK_YAML=stack.yaml
26 os: osx
27 os_image: xcode7.3
28 compiler: ": #stack 8.0.2"
30before_script:
31 - unset CC
32 - export PATH=$HOME/.local/bin:/opt/ghc/$GHC_VERSION/bin:$PATH
33 - ./.travis/install-ghr.sh
34 - ./.travis/install-stack.sh
36# Here starts the actual work to be performed for the package under test;
37# any command which exits with a non-zero exit code causes the build to fail.
38script:
39 - |
40 # Run tests
41 set -e
42 ./.travis/install-dependencies.sh
43 stack --no-terminal --jobs=2 --system-ghc test
44 - |
45 #Run HLint
46 if [[ "$(uname)" = "Linux" ]]; then
47 curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh | sh -s lint src test examples --cpp-define VERSION_project_m36=HLINT
48 fi
49 - |
50 #Run Haddock
51 if [[ "$(uname)" = "Linux" ]]; then
52 stack --no-install-ghc --system-ghc --no-haddock-deps haddock
53 fi
55after_success:
56 - |
57 # Build and ship binary
58 #./.travis/attach-binary.sh
60# EOF