Skip to content

Commit

Permalink
[ci] Test with OCaml trunk / beta
Browse files Browse the repository at this point in the history
We may want to have some of these tests `allow_failure`.

Fixes ocaml#2298

Signed-off-by: Emilio Jesus Gallego Arias <e+git@x80.org>
  • Loading branch information
ejgallego committed Jun 30, 2020
1 parent d5ee4b7 commit 65be23f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .travis-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ fi
case "$TARGET" in
prepare)
echo -en "travis_fold:start:ocaml\r"
if [ ! -e ~/ocaml/cached-version -o "$(cat ~/ocaml/cached-version)" != "$OCAML_VERSION.$OCAML_RELEASE" ] ; then
if [ ! -e ~/ocaml/cached-version -o "$(cat ~/ocaml/cached-version)" != "${OCAML_VERSION}${OCAML_RELEASE}" ] ; then
rm -rf ~/ocaml
mkdir -p ~/ocaml/src
cd ~/ocaml/src
wget http://caml.inria.fr/pub/distrib/ocaml-$OCAML_VERSION/ocaml-$OCAML_VERSION.$OCAML_RELEASE.tar.gz
tar -xzf ocaml-$OCAML_VERSION.$OCAML_RELEASE.tar.gz
cd ocaml-$OCAML_VERSION.$OCAML_RELEASE
wget https://github.com/ocaml/ocaml/archive/${OCAML_VERSION}${OCAML_RELEASE}.tar.gz
tar -xzf ocaml-${OCAML_VERSION}${OCAML_RELEASE}.tar.gz
cd ocaml-${OCAML_VERSION}${OCAML_RELEASE}
./configure -prefix ~/ocaml
make world.opt
make install
cd ../..
rm -rf src
echo "$OCAML_VERSION.$OCAML_RELEASE" > ~/ocaml/cached-version
echo "${OCAML_VERSION}${OCAML_RELEASE}" > ~/ocaml/cached-version
fi
echo -en "travis_fold:end:ocaml\r"
if [ $WITH_OPAM -eq 1 -o $OLD_OCAML -eq 1 ] ; then
Expand Down
18 changes: 12 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,30 @@ script: bash -ex .travis-ci.sh build
matrix:
include:
- os: linux
env: OCAML_VERSION=4.02 OCAML_RELEASE=3 WITH_OPAM=0
env: OCAML_VERSION=4.02 OCAML_RELEASE=.3 WITH_OPAM=0
stage: Build
- os: linux
env: OCAML_VERSION=4.08 OCAML_RELEASE=1 WITH_OPAM=0
env: OCAML_VERSION=4.08 OCAML_RELEASE=.1 WITH_OPAM=0
stage: Build
- os: linux
env: OCAML_VERSION=4.09 OCAML_RELEASE=0 WITH_OPAM=0
env: OCAML_VERSION=4.09 OCAML_RELEASE=.0 WITH_OPAM=0
stage: Build
- os: linux
env: OCAML_VERSION=4.10 OCAML_RELEASE=0 WITH_OPAM=0
env: OCAML_VERSION=4.10 OCAML_RELEASE=.0 WITH_OPAM=0
stage: Build
- os: linux
env: OCAML_VERSION=4.10 OCAML_RELEASE=0 WITH_OPAM=1
env: OCAML_VERSION=4.11 OCAML_RELEASE= WITH_OPAM=0
stage: Build
- os: linux
env: OCAML_VERSION=trunk OCAML_RELEASE= WITH_OPAM=0
stage: Build
- os: linux
env: OCAML_VERSION=4.10 OCAML_RELEASE=.0 WITH_OPAM=1
stage: Test
addons:
apt:
packages:
- aspcud
- os: osx
env: OCAML_VERSION=4.10 OCAML_RELEASE=0 WITH_OPAM=0
env: OCAML_VERSION=4.10 OCAML_RELEASE=.0 WITH_OPAM=0
stage: Build_macOS

0 comments on commit 65be23f

Please sign in to comment.