forked from mirage/ocaml-dns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mirage#136 from mato/travis-fixes
Travis updates (skeleton script, use trusty, add Solo5)
- Loading branch information
Showing
2 changed files
with
15 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |