forked from coq-community/coq-dpdgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 916 Bytes
/
.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
sudo: required
dist: trusty
language: c
cache:
apt: true
directories:
- $HOME/.opam
install:
- sudo add-apt-repository --yes ppa:avsm/ppa
- sudo apt-get update -qq
- sudo apt-get install -qq -y opam
- opam --version
- opam init -y
- opam switch 4.07.0 || opam switch create 4.07.0
- eval $(opam config env)
- opam config var root
- opam repo add coq-core-dev https://coq.inria.fr/opam/core-dev || true
- opam install -y ocamlfind ocamlgraph
- git clone --depth=1 https://github.com/coq/coq
- opam show --field=source-hash coq
- sed -e 's/\(.\{8\}\).*/\1/' coq/.git/refs/heads/master
- if [ "$(opam show --field=source-hash coq)" = "$(sed -e 's/\(.\{8\}\).*/\1/' coq/.git/refs/heads/master)" ] ; then true is $(opam show --field=source-hash coq) ; else opam uninstall coq ; fi ; rm -rf coq
- travis_wait opam install -y coq.dev
- opam list
script:
- autoconf
- ./configure
- make || exit $?
- make test-suite