Skip to content

Commit

Permalink
add skeleton travis files
Browse files Browse the repository at this point in the history
  • Loading branch information
avsm committed Sep 23, 2013
1 parent 19116a7 commit 2671cb1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
echo pull req $TRAVIS_PULL_REQUEST

if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
curl -OL https://github.com/$TRAVIS_REPO_SLUG/pull/$TRAVIS_PULL_REQUEST.diff -o pullreq.diff
cat pullreq.diff
fi

# Install OCaml and OPAM PPAs
case "$OCAML_VERSION" in
4.00.1)
echo "yes" | sudo add-apt-repository ppa:avsm/ppa
;;
4.01.0)
echo "yes" | sudo add-apt-repository ppa:avsm/ppa-testing
;;
*)
;;
esac

sudo apt-get update -qq
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam
export OPAMYES=1
export OPAMVERBOSE=1

cd $TRAVIS_BUILD_DIR
git show
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: c
script: bash -ex .travis-ci.sh
env:
- OCAML_VERSION=4.00.1
- OCAML_VERSION=4.01.0

0 comments on commit 2671cb1

Please sign in to comment.