Skip to content

Commit

Permalink
Merge pull request #4986 from kit-ty-kate/windows-ci-fix
Browse files Browse the repository at this point in the history
[2.1 backport] Speed up and fix AppVeyor runs
  • Loading branch information
kit-ty-kate authored Jan 18, 2022
2 parents 1388025 + b1a06b1 commit 1127a59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -267,4 +267,4 @@ cold-%:

.PHONY: run-appveyor-test
run-appveyor-test:
env PATH="`pwd`/bootstrap/ocaml/bin:$$PATH" ./appveyor_test.sh
env -u OCAMLLIB -u CAML_LD_LIBRARY_PATH PATH="`pwd`/bootstrap/ocaml/bin:$$PATH" ./appveyor_test.sh
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ environment:
global:
CYG_ROOT: cygwin64
CYG_ARCH: x86_64
CYGWIN: winsymlinks:native
OCAML_PORT:
CYG_CACHE: C:/cygwin/var/cache/setup
CYG_MIRROR: http://mirrors.kernel.org/sourceware/cygwin/
DEP_MODE: lib-ext
# This should be identical to the value in .travis.yml
OPAM_REPO: https://github.com/ocaml/opam-repository.git
OPAM_REPO_SHA: 38e8f54c584fa3cfe779890f7a56fe88ee38be78
OPAM_TEST_REPO_SHA: 38e8f54c584fa3cfe779890f7a56fe88ee38be78
matrix:
Expand Down
4 changes: 3 additions & 1 deletion appveyor_test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

opam init -y -a --compiler=ocaml.4.12.0 git+https://github.com/ocaml/opam-repository#$OPAM_TEST_REPO_SHA
COLD_OCAML="$(sed -ne 's/URL_ocaml = .*ocaml-.*ocaml-\(.*\)\.tar\.gz/ocaml.\1/p' src_ext/Makefile)"
# This is supposed to be able to select ocaml-system using the bootstrap compiler
opam init -y -a --compiler=$COLD_OCAML git+$OPAM_REPO#$OPAM_TEST_REPO_SHA
eval $(opam config env)
opam install -y -v ocamlfind

0 comments on commit 1127a59

Please sign in to comment.