Skip to content

Commit a1650eb

Browse files
committed
Set travis ci
1 parent 53cbcdb commit a1650eb

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.travis.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
dist: trusty
2+
sudo: required
3+
language: c
4+
cache:
5+
apt: true
6+
directories:
7+
- $HOME/.opam
8+
addons:
9+
apt:
10+
sources:
11+
- avsm
12+
packages:
13+
- opam
14+
- aspcud
15+
env:
16+
global:
17+
- NJOBS=1
18+
MENHIR="20181113"
19+
PACO="4.0.0"
20+
COMPCERTR="[email protected]:snu-sf/CompCertR.git"
21+
22+
matrix:
23+
- COMPILER="4.07.1"
24+
TEST_TARGET="8.9.1"
25+
ARCHI="x86_64-linux"
26+
27+
before_script:
28+
- ./ci/keep_alive.sh &
29+
30+
install:
31+
- opam init -j ${NJOBS} --compiler=${COMPILER} -n -y
32+
- eval $(opam config env)
33+
- opam config var root
34+
- opam install -y --verbose -j ${NJOBS} coq.${TEST_TARGET} && opam pin add coq ${TEST_TARGET} -y
35+
- opam install -y --verbose -j ${NJOBS} menhir.${MENHIR} && opam pin add menhir ${MENHIR} -y
36+
- opam repo add coq-released https://coq.inria.fr/opam/released
37+
- opam install -y --verbose -j ${NJOBS} coq-paco.${PACO} && opam pin add coq-paco ${PACO} -y
38+
- git clone ${COMPCERTR} CompCertR
39+
- cd CompCertR
40+
- mkdir CompCertM
41+
- mv ../[^CompCertR]* CompCertM
42+
- ./configure ${ARCHI}
43+
- make -j ${NJOBS}
44+
45+
script:
46+
- eval $(opam config env)
47+
- opam config var root
48+
- cd CompCertM
49+
- make -j ${NJOBS}

ci/keep_alive.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
# Stolen from fiat-crypto: https://github.com/mit-plv/fiat-crypto/blob/78656baa06ed1daeb7ba90c2d429228516dc8475/etc/ci/keep_alive.sh
3+
4+
while [ 1 ]
5+
do
6+
echo ""
7+
echo "Travis keep-alive spew"
8+
sleep 5m
9+
done

0 commit comments

Comments
 (0)