Skip to content

Test incompatible ocaml versions #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
env:
global:
- OPAMJOBS="2"
- PACKAGE_NAME="coq-io-system-ocaml"
matrix:
- OCAML_IMAGE="ocaml/opam2:4.02"
- OCAML_IMAGE="ocaml/opam2:4.03"
Expand All @@ -28,8 +29,7 @@ install: |
set -ex # -e = exit on failure; -x = trace for debug
sudo apt-get install m4 -y
opam update -y
opam pin add coq-io-system-ocaml.opam . --kind=path -y --no-action
opam install coq-io-system-ocaml --deps-only
opam pin add ${PACKAGE_NAME}.opam . --kind=path -y --no-action
opam config list
opam repo list
opam pin list
Expand All @@ -43,7 +43,14 @@ script:
export PS4='+ \e[33;1m(\$0 @ line \$LINENO) \$\e[0m '
set -ex
sudo chown -R opam:opam /home/project
opam install coq-io-system-ocaml -v
# Check if the package is compatible with the current environment
if opam install ${PACKAGE_NAME} --show-action; then
# First install the dependencies
opam install ${PACKAGE_NAME} --deps-only
opam list
# Then install the package itself in verbose mode
opam install ${PACKAGE_NAME} -v
fi;
" script
- docker stop OCAML # optional
- docker stop OCAML # optional
- echo -en 'travis_fold:end:script\\r'
2 changes: 1 addition & 1 deletion coq-io-system-ocaml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ install: [
]
depends: [
"lwt" {>= "2.4.7"}
"ocaml" {>= "4.00.0"}
"ocaml" {>= "4.02.0"}
"ocamlbuild"
"ocamlfind"
"num"
Expand Down