You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
language: c
|
|
env:
|
|
- OCAML_VERSION=4.09.1 OPAM_VERSION=2.0.7
|
|
cache:
|
|
directories:
|
|
- ${HOME}/.opam
|
|
- facebook-clang-plugins
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libmpfr-dev
|
|
homebrew:
|
|
packages:
|
|
- aspcud
|
|
- automake
|
|
- gmp
|
|
- libtool
|
|
- lzlib
|
|
- mpfr
|
|
- pkg-config
|
|
- sqlite
|
|
before_install:
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ARCH="macos"; else ARCH="linux"; fi
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export PATH="/usr/bin:${PATH}"; fi
|
|
- wget -O ${HOME}/opam https://github.com/ocaml/opam/releases/download/${OPAM_VERSION}/opam-${OPAM_VERSION}-x86_64-${ARCH}
|
|
- chmod +x ${HOME}/opam
|
|
- export PATH=${HOME}:${PATH}
|
|
- export OPAMYES=1
|
|
- export OPAMJOBS=2
|
|
- export INFER_OPAM_SWITCH="ocaml-variants.${OCAML_VERSION}+flambda"
|
|
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export OPAMEXTERNALSOLVER=$(which aspcud); fi
|
|
- opam init --compiler=${OCAML_VERSION} --disable-sandboxing
|
|
- eval $(opam env)
|
|
- export OPAMVERBOSE=1
|
|
install:
|
|
# ensure infer isn't installed in this switch, then deal with dependencies
|
|
- opam remove infer || true
|
|
- opam update --upgrade
|
|
- opam pin add --no-action infer .
|
|
- if [ "$TRAVIS_OS_NAME" != "osx" ]; then opam depext --update infer; fi
|
|
- opam install --deps-only infer
|
|
script:
|
|
- opam install infer
|
|
before_cache:
|
|
- opam remove infer || true
|
|
os:
|
|
- linux
|
|
- osx
|