forked from naqsha/naqsha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (65 loc) · 2.14 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
language: c
sudo: false
# Setting up caches
cache:
directories:
- $HOME/.cabal/packages
- $HOME/.cabal/store
before_cache:
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
# remove files that are regenerated by 'cabal update'
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.*
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/*.json
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.cache
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/01-index.tar.idx
- rm -rfv $HOME/.cabal/packages/head.hackage
matrix:
fast_finish: true
include:
# Lint the code.
- compiler: hlint
addons: {apt: {packages: [curl], sources: [hvr-ghc]}}
- compiler: ghc-8.4.4
addons: {apt: {packages: [cabal-install-3.0 ,ghc-8.4.4], sources: [hvr-ghc]}}
- compiler: ghc-8.6.5
addons: {apt: {packages: [cabal-install-3.0 ,ghc-8.6.5], sources: [hvr-ghc]}}
- compiler: ghc-8.8.1
addons: {apt: {packages: [cabal-install-3.0 ,ghc-8.8.1], sources: [hvr-ghc]}}
- compiler: ghc-8.10.2
addons: {apt: {packages: [cabal-install-3.2 ,ghc-8.10.2], sources: [hvr-ghc]}}
- compiler: ghc-head
addons: {apt: {packages: [cabal-install-head ,ghc-head], sources: [hvr-ghc]}}
- os: osx
compiler: ghc
allow_failures:
- compiler: ghc-head
before_install:
- uname -a
- if [ "$CC" == "hlint" ]; then
unset CC;
curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s .;
exit $?;
fi
- export PATH=/opt/ghc/bin:$PATH;
- unset CC
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ghc cabal-install; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew info ghc cabal-install; fi
install:
- ghc --version
- cabal --version
- travis_retry cabal update;
script:
- cabal new-configure --enable-tests --enable-benchmarks
- cabal new-build
- cabal new-test
- cabal check
after_success:
- echo "All is well."
after_failure:
- echo "Build failed."
branches:
only:
- master
- v0.2.0.0