Skip to content
Permalink
Browse files

Fix CI

  • Loading branch information...
sagotch committed Jul 8, 2019
1 parent b207c6e commit 9baf3425be89b64616094dac4378efa3f3fb562e
Showing with 29 additions and 11 deletions.
  1. +6 −6 .travis.yml
  2. +23 −5 appveyor.yml
@@ -34,19 +34,19 @@ install:
script:
- set -ex ;
export OPAMYES=1 ;
export DEPS='benchmark camlp5 cppo dune markup ocaml ounit num ocurl piqi piqilib redis redis-sync stdlib-shims yojson zarith' ;
eval $(opam config env) ;
if [[ "$OCAML_VERSION" == "4.08" ]] ; then
opam pin add camlp5 https://github.com/sagotch/camlp5.git#patch-1 -k git --no-action ;
opam pin add piqilib https://github.com/alavrik/piqi.git --no-action ;
opam pin add piqi https://github.com/geneanet/piqi-ocaml.git --no-action ;
fi ;
opam pin add geneweb . --no-action ;
opam pin add markup https://github.com/geneanet/markup.ml -k git --no-action ;
opam update ;
opam install geneweb --with-test --deps-only ;
opam install depext ;
opam depext $DEPS ;
opam install $DEPS ;
./configure && make clean test bench distrib clean ;
opam install ocurl piqi piqilib redis redis-sync yojson ;
./configure --api && make clean test bench distrib clean ;
opam install num ;
./configure --sosa-num && make clean test bench distrib clean ;
opam install zarith ;
./configure --sosa-zarith && make clean test bench distrib clean ;
./configure --api && make clean test bench distrib clean ;
@@ -1,22 +1,40 @@
skip_commits:
files:
- CHANGES
- ICHANGES
- etc/
- geneweb.opam
- .gitignore
- hd/
- INSTALL
- LICENSE
- README.md
- man/
- .travis.yml

platform:
- x86

environment:
CYG_ROOT: C:/cygwin
CYG_BASH: '%CYG_ROOT%/bin/bash -lc'
OPAM_PACKAGES: 'benchmark camlp5 cppo dune markup ocaml ounit num stdlib-shims zarith'

install:
- 'set OPAMYES=1'
- '%CYG_ROOT%\setup-x86.exe -qnNdO -R %CYG_ROOT% -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup -P rsync -P patch -P diffutils -P unzip -P m4 -P mingw64-x86_64-gcc-core -P mingw64-x86_64-gtk2.0'
- '%CYG_BASH% "curl -fsSL -o opam64.tar.xz https://github.com/fdopen/opam-repository-mingw/releases/download/0.0.0.2/opam64.tar.xz"'
- '%CYG_BASH% "tar -xf opam64.tar.xz"'
- '%CYG_BASH% "opam64/install.sh"'
- '%CYG_BASH% "opam init default \"https://github.com/fdopen/opam-repository-mingw.git#opam2\" -c \"ocaml-variants.4.07.1+mingw64\" --disable-sandboxing"'
- '%CYG_BASH% "eval $(opam env)"'
- '%CYG_BASH% "opam pin add --no-action -k path geneweb.dev ${APPVEYOR_BUILD_FOLDER}"'
- '%CYG_BASH% "opam init default \"https://github.com/fdopen/opam-repository-mingw.git#opam2\" -c \"ocaml-variants.4.07.1+mingw64c\" --disable-sandboxing"'
- '%CYG_BASH% "eval $(ocaml-env cygwin)"'
- '%CYG_BASH% "opam pin add markup https://github.com/geneanet/markup.ml -k git --no-action"'
- '%CYG_BASH% "opam update"'
- '%CYG_BASH% "opam install geneweb.dev --with-test --deps-only"'
- '%CYG_BASH% "opam install depext depext-cygwinports"'
- '%CYG_BASH% "opam depext ${OPAM_PACKAGES}"'
- '%CYG_BASH% "opam install ${OPAM_PACKAGES}"'

build_script:
- '%CYG_BASH% "cd ${APPVEYOR_BUILD_FOLDER} && eval $(opam env) && ./configure && make clean test bench distrib clean"'
- '%CYG_BASH% "cd ${APPVEYOR_BUILD_FOLDER} && eval $(opam env) && opam install num && ./configure --sosa-num && make clean test bench distrib clean"'
- '%CYG_BASH% "cd ${APPVEYOR_BUILD_FOLDER} && eval $(opam env) && ./configure --sosa-num && make clean test bench distrib clean"'
# - '%CYG_BASH% "cd ${APPVEYOR_BUILD_FOLDER} && eval $(opam env) && ./configure --sosa-zarith && make clean test bench distrib clean"'

0 comments on commit 9baf342

Please sign in to comment.
You can’t perform that action at this time.