-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
27 lines (27 loc) · 997 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
language: c
dist: trusty
sudo: false
addons:
apt:
packages:
- aspcud
- libcairo2-dev
install:
- wget --output-document=$HOME/opam2 https://github.com/ocaml/opam/releases/download/2.0.1/opam-2.0.1-x86_64-linux
- chmod +x $HOME/opam2
- test -d $HOME/.opam/$OCAML_VERSION || $HOME/opam2 init --yes --disable-sandboxing --compiler=$OCAML_VERSION
- $HOME/opam2 update --yes
- eval `$HOME/opam2 config env`
- $HOME/opam2 switch list
- $HOME/opam2 install --yes General$GENERAL_VERSION JsOfOCairo$JSOFOCAIRO_VERSION cairo2$CAIRO2_VERSION dune$DUNE_VERSION menhir$MENHIR_VERSION
- if $UPGRADE_OPAM; then $HOME/opam2 upgrade --yes; fi
- $HOME/opam2 list
script:
- dune runtest
env:
- OCAML_VERSION=4.02.3 GENERAL_VERSION=.0.6.0 JSOFOCAIRO_VERSION=.2.0.0 CAIRO2_VERSION=.0.6 DUNE_VERSION=.1.4.0 MENHIR_VERSION=.20171222 UPGRADE_OPAM=false
- OCAML_VERSION=4.07.1 UPGRADE_OPAM=true
- OCAML_VERSION=4.07.1+flambda UPGRADE_OPAM=true
cache:
directories:
- $HOME/.opam