mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-08 04:05:43 -05:00
chore: use a different travis script
This commit is contained in:
parent
65bd7e7744
commit
b4ef8e4e67
1 changed files with 16 additions and 35 deletions
51
.travis.yml
51
.travis.yml
|
|
@ -1,37 +1,18 @@
|
||||||
language: c
|
language: c
|
||||||
|
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-docker.sh
|
||||||
|
script: bash -ex .travis-docker.sh
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
env:
|
env:
|
||||||
- RUN_TEST=true OCAML_VERSION=4.03.0
|
global:
|
||||||
- RUN_TEST=true OCAML_VERSION=4.03.0+flambda
|
- PINS="msat:. msat-bin:."
|
||||||
- RUN_TEST=true OCAML_VERSION=4.04.0
|
- DISTRO="ubuntu-16.04"
|
||||||
- RUN_TEST=true OCAML_VERSION=4.04.0+flambda
|
matrix:
|
||||||
- RUN_TEST=true OCAML_VERSION=4.06.0
|
- PACKAGE="msat" CAML_VERSION="4.03"
|
||||||
addons:
|
- PACKAGE="msat" CAML_VERSION="4.04"
|
||||||
apt:
|
#- PACKAGE="msat" CAML_VERSION="4.05"
|
||||||
sources:
|
- PACKAGE="msat" CAML_VERSION="4.06"
|
||||||
- avsm
|
#- PACKAGE="msat" CAML_VERSION="4.08"
|
||||||
packages:
|
- PACKAGE="msat" CAML_VERSION="4.09"
|
||||||
- opam
|
- PACKAGE="msat" CAML_VERSION="4.10"
|
||||||
- time
|
- PACKAGE="msat-bin" CAML_VERSION="4.06" TESTS=false
|
||||||
before_install:
|
|
||||||
# Download and use opam2
|
|
||||||
- wget -O ${HOME}/opam https://github.com/ocaml/opam/releases/download/2.0.0-beta6/opam-2.0.0-beta6-x86_64-linux
|
|
||||||
- chmod +x ${HOME}/opam
|
|
||||||
# Some opam boilerplate
|
|
||||||
- export OPAMYES=1
|
|
||||||
- export OPAMJOBS=2
|
|
||||||
# Init opam, and the default switch with the right ocaml version
|
|
||||||
- ${HOME}/opam init --compiler=${OCAML_VERSION}
|
|
||||||
- eval `${HOME}/opam config env`
|
|
||||||
- export OPAMVERBOSE=1
|
|
||||||
- opam switch ${OCAML_VERSION}
|
|
||||||
- eval `opam config env`
|
|
||||||
- opam install ocamlfind dune iter camlzip
|
|
||||||
- if ${RUN_TEST}; then opam install containers ; fi
|
|
||||||
install:
|
|
||||||
- make build
|
|
||||||
script:
|
|
||||||
# Build and launch the tests
|
|
||||||
- if [ "$TO_TEST" = "tests" ]; then make lib && make bin && make test; fi
|
|
||||||
# Try and install the package with opam
|
|
||||||
- if [ "$TO_TEST" = "install" ]; then ${HOME}/opam install msat.dev; fi
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue