mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
Enable support for Travis CI and Appveyor
This commit is contained in:
parent
001d330bb9
commit
a0d0cf9d88
2 changed files with 36 additions and 31 deletions
44
.travis.yml
44
.travis.yml
|
|
@ -1,33 +1,15 @@
|
|||
language: c
|
||||
install: wget https://raw.githubusercontent.com/ocaml/ocaml-ci-scripts/master/.travis-docker.sh
|
||||
script: bash -ex .travis-docker.sh
|
||||
services:
|
||||
- docker
|
||||
env:
|
||||
- OCAML_VERSION=4.02.3
|
||||
- OCAML_VERSION=4.04.2
|
||||
- OCAML_VERSION=4.05.0
|
||||
- OCAML_VERSION=4.05.0+flambda
|
||||
- OCAML_VERSION=4.06.0
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- avsm
|
||||
packages:
|
||||
- opam
|
||||
# Caching may take a lot of space with so many ocaml versions
|
||||
#cache:
|
||||
# directories:
|
||||
# - $HOME/.opam
|
||||
before_install:
|
||||
# Some opam boilerplate
|
||||
- export OPAMYES=1
|
||||
- export OPAMVERBOSE=1
|
||||
- opam init
|
||||
- opam switch ${OCAML_VERSION}
|
||||
- eval `opam config env`
|
||||
install:
|
||||
# Install dependencies
|
||||
- opam pin add --no-action containers .
|
||||
- opam install jbuilder base-bytes result
|
||||
- opam install --deps-only containers
|
||||
script:
|
||||
- make build
|
||||
- opam install sequence qcheck qtest gen
|
||||
- make test
|
||||
global:
|
||||
- PINS="containers:."
|
||||
- DISTRO="ubuntu-16.04"
|
||||
matrix:
|
||||
- PACKAGE="containers" OCAML_VERSION="4.02.3" DEPOPTS="base-threads base-unix"
|
||||
- PACKAGE="containers" OCAML_VERSION="4.03.0" DEPOPTS="base-threads base-unix"
|
||||
- PACKAGE="containers" OCAML_VERSION="4.04.2" DEPOPTS="base-threads base-unix"
|
||||
- PACKAGE="containers" OCAML_VERSION="4.05.0" DEPOPTS="base-threads base-unix"
|
||||
- PACKAGE="containers" OCAML_VERSION="4.06.0" DEPOPTS="base-threads base-unix"
|
||||
|
|
|
|||
23
appveyor.yml
Normal file
23
appveyor.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
platform:
|
||||
- x86
|
||||
environment:
|
||||
global:
|
||||
FORK_USER: ocaml
|
||||
FORK_BRANCH: master
|
||||
CYG_ROOT: C:\cygwin64
|
||||
PINS: containers:.
|
||||
matrix:
|
||||
- OPAM_SWITCH: 4.02.3+mingw64c
|
||||
PACKAGE: containers
|
||||
- OPAM_SWITCH: 4.03.0+mingw64c
|
||||
PACKAGE: containers
|
||||
- OPAM_SWITCH: 4.04.2+mingw64c
|
||||
PACKAGE: containers
|
||||
- OPAM_SWITCH: 4.05.0+mingw64c
|
||||
PACKAGE: containers
|
||||
- OPAM_SWITCH: 4.06.0+mingw64c
|
||||
PACKAGE: containers
|
||||
install:
|
||||
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/$env:FORK_USER/ocaml-ci-scripts/$env:FORK_BRANCH/appveyor-install.ps1"))
|
||||
build_script:
|
||||
- call %CYG_ROOT%\bin\bash.exe -l %APPVEYOR_BUILD_FOLDER%\appveyor-opam.sh
|
||||
Loading…
Add table
Reference in a new issue