Skip to content

Commit

Permalink
Merge pull request mirage#136 from mato/travis-fixes
Browse files Browse the repository at this point in the history
Travis updates (skeleton script, use trusty, add Solo5)
  • Loading branch information
yomimono authored Sep 7, 2016
2 parents 835ff56 + b4e50b5 commit 092f825
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 29 deletions.
29 changes: 4 additions & 25 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
@@ -1,33 +1,12 @@
# Install OCaml and OPAM PPAs
case "$OCAML_VERSION" in
4.02) ppa=avsm/ocaml42+opam12 ;;
*) echo Unknown $OCAML_VERSION; exit 1 ;;
esac

echo "yes" | sudo add-apt-repository ppa:$ppa
sudo apt-get update -qq
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam time libgmp-dev

TRUSTY="deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe"
sudo add-apt-repository "${TRUSTY}"
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -qq update
sudo apt-get -qq install gcc-4.8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 90
sudo add-apt-repository -r "${TRUSTY}"

echo OCaml version
ocaml -version
bash .travis-ocaml.sh

export OPAMYES=1
eval $(opam config env)

opam init git://github.com/ocaml/opam-repository >/dev/null 2>&1
opam repo add mirage-dev .
opam update -u

opam install mirage
eval `opam config env`

git clone -b mirage-dev git://github.com/mirage/mirage-skeleton
cd mirage-skeleton
MODE=unix make
MODE=xen make
make
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
language: c
script: bash -e .travis-ci.sh
install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-ocaml.sh
script: bash -ex .travis-ci.sh
sudo: required
os:
- linux
dist: trusty
env:
matrix:
- OCAML_VERSION=4.02
- OCAML_VERSION=4.03 MODE=unix
- OCAML_VERSION=4.03 MODE=xen
- OCAML_VERSION=4.03 MODE=ukvm
- OCAML_VERSION=4.03 MODE=virtio
- OCAML_VERSION=4.02 MODE=unix
- OCAML_VERSION=4.02 MODE=xen
- OCAML_VERSION=4.02 MODE=ukvm
- OCAML_VERSION=4.02 MODE=virtio

0 comments on commit 092f825

Please sign in to comment.