Skip to content

Commit 2671cb1

Browse files
committed
add skeleton travis files
1 parent 19116a7 commit 2671cb1

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.travis-ci.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
echo pull req $TRAVIS_PULL_REQUEST
2+
3+
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
4+
curl -OL https://github.com/$TRAVIS_REPO_SLUG/pull/$TRAVIS_PULL_REQUEST.diff -o pullreq.diff
5+
cat pullreq.diff
6+
fi
7+
8+
# Install OCaml and OPAM PPAs
9+
case "$OCAML_VERSION" in
10+
4.00.1)
11+
echo "yes" | sudo add-apt-repository ppa:avsm/ppa
12+
;;
13+
4.01.0)
14+
echo "yes" | sudo add-apt-repository ppa:avsm/ppa-testing
15+
;;
16+
*)
17+
;;
18+
esac
19+
20+
sudo apt-get update -qq
21+
sudo apt-get install -qq ocaml ocaml-native-compilers camlp4-extra opam
22+
export OPAMYES=1
23+
export OPAMVERBOSE=1
24+
25+
cd $TRAVIS_BUILD_DIR
26+
git show

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
language: c
2+
script: bash -ex .travis-ci.sh
3+
env:
4+
- OCAML_VERSION=4.00.1
5+
- OCAML_VERSION=4.01.0

0 commit comments

Comments
 (0)