-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
160 lines (129 loc) · 4.22 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# Adapted from https://github.com/hvr/multi-ghc-travis
# NB: don't set `language: haskell` here.
language: c
# Request Ubuntu Trusty (14.04 LTS).
dist: trusty
# Explicitly request sudo-enabled virtual environments
sudo: required
##############################################################################
# Tests
matrix:
include:
- env: TEST=MAIN GHC_VER=8.4.3 BUILD=CABAL CABAL_VER=2.2
addons:
apt:
packages:
- cabal-install-2.2
- ghc-8.4.3
- texlive-binaries
sources:
- hvr-ghc
- env: TEST=MAIN GHC_VER=8.2.2 BUILD=CABAL CABAL_VER=2.0
addons:
apt:
packages:
- cabal-install-2.0
- ghc-8.2.2
- texlive-binaries
sources:
- hvr-ghc
- env: TEST=main GHC_VER=8.0.2 CABAL_VER=1.24
addons:
apt:
packages:
- cabal-install-1.24
- ghc-8.0.2
- texlive-binaries
sources:
- hvr-ghc
- env: TEST=main GHC_VER=7.10.3 CABAL_VER=1.22
addons:
apt:
packages:
- cabal-install-1.22
- ghc-7.10.3
sources:
- hvr-ghc
##############################################################################
before_install:
- export APIA_HOME=`pwd`
- export MY_HOME=${HOME}/build/asr
- mkdir ${MY_HOME}/bin
- export PATH=${MY_HOME}/bin:/opt/ghc/${GHC_VER}/bin:/opt/cabal/${CABAL_VER}/bin:/opt/alex/3.1.7/bin:/opt/happy/1.19.5/bin:${PATH}
##############################################################################
install:
# How much memory we have.
- vmstat -s
# Asking for the shell.
- echo $SHELL
- cabal --version
- ghc --version
- cabal update
- cat ${HOME}/.cabal/config
- export PATH=${HOME}/.cabal/bin:${PATH}
- cabal --version
- export JOBS=2
##############################################################################
# Installing the extended version of Agda (adapted from Agda)
# Installing the tools required by Agda. The version installed of
# cpphs should match the lower version required in apia.cabal.
- travis_retry cabal fetch alex happy cpphs-1.20.8
- cabal install cpphs-1.20.8
- cabal install -v0 alex happy cpphs-1.20.8
- echo "*** Alex version ***"
- alex --version
- echo "*** Happy version ***"
- happy --version
- echo "*** cpphs version ***"
- cpphs --version
- git clone https://github.com/asr/eagda.git ${MY_HOME}/eagda
- cd ${MY_HOME}/eagda
- cabal install --only-dependencies --force-reinstalls
- cabal configure -v2
- cabal build -v2 -j${JOBS}
- cabal copy
- cabal register
- cd ${APIA_HOME}
##############################################################################
# Installing Apia
- cabal install -v2 -j${JOBS} --enable-tests
##############################################################################
# Installing tptp4X
- cp tools/tptp4X ${MY_HOME}/bin/
##############################################################################
# Installing fix-whitespace
- make install-fix-whitespace
##############################################################################
# Installing HLint and shelltestrunner
- cabal install hlint
# We used `--allow-newer=process` because
# https://github.com/simonmichael/shelltestrunner/pull/8.
- cabal install shelltestrunner --allow-newer=process
##############################################################################
# Installing the E theorem prover
- cd ${MY_HOME}
- wget http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_2.1/E.tgz
- tar -xzf E.tgz
- cd E
- ./configure --bindir=${MY_HOME}/bin
- make
- make install
- cd ${APIA_HOME}
##############################################################################
# Installing OnlineATPs
- git clone https://github.com/jonaprieto/online-atps ${MY_HOME}/online-atps
- cd ${MY_HOME}/online-atps
- cabal install --force-reinstalls
- cd ${APIA_HOME}
##############################################################################
script:
- make generated-all
- make non-conjectures
- make errors
- make type-check-notes
- make ATPs="e" prove-notes
- make check-whitespace
- make hlint
branches:
only:
- master