forked from au-ts/cogent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (97 loc) · 3.24 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
sudo: false
language: generic
cache:
directories:
- "$HOME/.cabal/packages"
before_cache:
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/build-reports.log
- rm -fv $HOME/.cabal/packages/hackage.haskell.org/00-index.tar
matrix:
include:
- env: BUILD=cabal GHCVER=7.10.3 CABALVER=1.22
compiler: ": #GHC 7.10.3"
addons:
apt:
packages:
- cabal-install-1.22
- ghc-7.10.3
- happy-1.19.5
- alex-3.1.7
sources:
- hvr-ghc
- env: BUILD=cabal GHCVER=8.0.1 CABALVER=1.24
compiler: ": #GHC 8.0.1"
addons:
apt:
packages:
- cabal-install-1.24
- ghc-8.0.1
- happy-1.19.5
- alex-3.1.7
sources:
- hvr-ghc
- env: BUILD=cabal GHCVER=head CABALVER=head
compiler: ": #GHC HEAD"
addons:
apt:
packages:
- cabal-install-head
- ghc-head
sources:
- hvr-ghc
allow_failures:
- env: BUILD=cabal GHCVER=head CABALVER=head
fast_finish: true
before_install:
- unset CC
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then export PATH=/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$HOME/.cabal/bin:$PATH;
export SED=sed; export ZCAT=zcat; fi
- env
- CABALARGS=""
- if [ "x$GHCVER" = "xhead" ]; then CABALARGS=--allow-newer; fi
install:
- which cabal
- cabal --version
- which ghc
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo
'?')]"
- if [ -f $HOME/.cabal/packages/hackage.haskell.org/00-index.tar.gz ]; then $ZCAT
$HOME/.cabal/packages/hackage.haskell.org/00-index.tar.gz > $HOME/.cabal/packages/hackage.haskell.org/00-index.tar;
fi
- travis_retry cabal --ignore-sandbox update -v
- "$SED -i -r 's/(^jobs:).*/\\1 2/' $HOME/.cabal/config"
- pushd isa-parser
- cabal --ignore-sandbox install --only-dependencies --enable-tests
- echo 'Configuring isa-parser'
- cabal --ignore-sandbox configure
- echo 'Building isa-parser'
- cabal --ignore-sandbox build
- echo 'Installing isa-parser'
- cabal --ignore-sandbox install
- popd
- pushd cogent
- cabal --ignore-sandbox install --only-dependencies --enable-tests;
- popd
script:
- ORIGINAL_DIR=$(pwd)
- pushd cogent
- echo 'Configuring Cogent'
- cabal --ignore-sandbox configure --enable-tests
- echo 'Building Cogent'
- cabal --ignore-sandbox build
- echo 'Installing Cogent'
- cabal --ignore-sandbox install
- echo 'Running tests'
- make test-tc
- make test-ds
- make test-an
- make test-mn
- make test-cg
- make test-aq
- echo 'Building Cogent examples'
- make examples
- popd
notifications:
hipchat:
rooms:
secure: BbgWKKsYcSrujfxOS7bHn9oKhTIAOsG0WbTkFybIfcTL3Ma3EhlGRr6Kj2S2f9Qf8SpewEcCBFbCCBqX0lb0vpbopEyRXnlA85k9WsJWC6Xxy/LbPDRXw54OeKnyO3w17FuvvzXIT62eBN1s7HeRDAU4UzLHbehhmmLBN8dn8PeEt4U4bXqHhpIJrFhNDvQY20KJDYzgQFbZPkF36XW3UGYumOE8YYwgwipIchpFmWanhydIKRPd7E4XlT61C+9d3awcxNpmRpx/G3nrxmea4kQDokrbBxrZvc/2xKGYHo+demsLz7d3NQROSeilOkrxZW41Sb4lFzw5yTY82qOfuR3hpZtGXDmKYeJ4xIuX8cGhPEtsO1ZqFqk6uHUjMCu+Q057R+918AeNqyjPcrcFn+kLnhWhcHbIGeJf4JRsC+jNP14M6BBYsjxVeWiTz3TzCUtMSMSh8sMIMCef40V7gUf32sDk/wR8j8cfkjK2BENprzKgqsnxiseDggEHTRKSoysXUiIPYs6+IDQSS178xJXzWy2V8TzLEEPvyuyUzSyVsvjYQ6TeNgkwxhk7Z4XYH0w5x1LCOgV0PWX/g00Wp08zMwv5I7JOUi4PkyzEP2zGPg6GQN9Ar9NRYbFbjBCv8I1XeCpTeFzwBeReNHTWRHh+YVrgmiAADCIsC+3GjfQ=