forked from reasonml/reason
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
23 lines (22 loc) · 956 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dependencies:
cache_directories:
- "~/.opam"
- "~/aptcache"
override:
- sudo add-apt-repository -y ppa:avsm/ppa
# BEGIN apt cache setup. Used in case cache is wiped.
- sudo mkdir -p ~/aptcache/partial
- sudo touch ~/aptcache/lock
- sudo chmod 640 ~/aptcache/lock
# END apt cache setup.
- sudo apt-get update -o dir::cache::archives="/home/ubuntu/aptcache" -y
- sudo apt-get install -o dir::cache::archives="/home/ubuntu/aptcache" -y ocaml ocaml-native-compilers opam
- opam init --auto-setup --dot-profile=~/.bashrc # Modify dotfiles
- opam switch --no-switch 4.02.3 # Download and compile all the versions
- opam switch --no-switch 4.03.0
- opam switch --no-switch 4.04.0
test:
override:
- ./scripts/test-with-version.sh 4.02.3
- ./scripts/test-with-version.sh 4.03.0
- ./scripts/test-with-version.sh 4.04.0