-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
81 lines (70 loc) · 1.53 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
sudo: required
language: generic
matrix:
include:
- os: osx
env: COMPILER=4.10.0
- os: linux
env: COMPILER=4.10.0
- os: linux
env: COMPILER=4.09.0
- os: linux
env: COMPILER=4.08.1
- os: linux
env: COMPILER=4.07.1
- os: linux
env: COMPILER=4.06.1
- os: linux
env: COMPILER=4.05.0
- os: linux
env: COMPILER=4.04.2
- os: linux
env: COMPILER=4.03.0
- os: linux
env: COMPILER=4.02.3
before_install:
- '[ "$TRAVIS_EVENT_TYPE" != cron ] || rm -rf ~/.opam ./_opam'
install:
- |
case $TRAVIS_OS_NAME in
linux)
sudo apt-get update -qq
sudo apt-get install -qq libev-dev
OS=linux
;;
osx)
brew update > /dev/null
brew install libev
OS=macos
;;
esac
- VERSION=2.0.6
- FILENAME=opam-$VERSION-x86_64-$OS
- wget https://github.com/ocaml/opam/releases/download/$VERSION/$FILENAME
- sudo mv $FILENAME /usr/local/bin/opam
- sudo chmod a+x /usr/local/bin/opam
- opam init -y --bare --disable-sandboxing --disable-shell-hook
- |
if [ ! -d _opam/bin ]
then
rm -rf _opam
opam switch create . $COMPILER $REPOSITORIES --no-install
fi
- eval `opam config env`
- opam --version
- ocaml -version
- opam install conf-libev
- opam install -y --deps-only .
script:
- dune build
- opam lint
before_cache:
- opam clean
cache:
directories:
- $HOME/.opam
- ./_opam
notifications:
email:
on_success: always
on_failure: always