[infer][PR] use apt addon in Travis

Summary:
clean up dependencies by using apt addon rather than `sudo apt`. This should make it easier to re-add osx support later.
Pull Request resolved: https://github.com/facebook/infer/pull/1235

Differential Revision: D20368920

Pulled By: jvillard

fbshipit-source-id: 456e8af6c
master
Amar Paul 5 years ago committed by Facebook Github Bot
parent b90d7c42d3
commit d48c3f644a

@ -1,15 +1,17 @@
language: c
sudo: required
env:
- OCAML_VERSION=4.08.1
cache:
directories:
- ${HOME}/.opam
- facebook-clang-plugins
addons:
apt:
packages:
- libmpfr-dev
before_install:
- sudo apt-get update
- sudo apt-get install -y libmpfr-dev
- wget -O ${HOME}/opam https://github.com/ocaml/opam/releases/download/2.0.3/opam-2.0.3-x86_64-linux
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ARCH="darwin"; else ARCH="linux"; fi
- wget -O ${HOME}/opam https://github.com/ocaml/opam/releases/download/2.0.3/opam-2.0.3-x86_64-${ARCH}
- chmod +x ${HOME}/opam
- export PATH=${HOME}:${PATH}
- export OPAMYES=1

Loading…
Cancel
Save