aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-01-22 14:11:15 +0100
committerEmilio Jesus Gallego Arias2019-01-22 14:11:15 +0100
commit4cfe350210f2390f90c49262c1c8a2c64f626c3e (patch)
treec71df84276a0faa12580a148cbf716c292e94dec
parentb8da6225e3867408f5d1ad0c716618c4228a1ad2 (diff)
parent3504b5a2361db97d9d073e0da506f815d693ef6e (diff)
Merge PR #9332: Add OSX job to azure
Ack-by: SkySkimmer Reviewed-by: ejgallego
-rw-r--r--azure-pipelines.yml107
1 files changed, 77 insertions, 30 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index e217601ae2..a8b42cc722 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -1,31 +1,78 @@
-pool:
- vmImage: 'vs2017-win2016'
-
-steps:
-- checkout: self
- fetchDepth: 10
-
-# cygwin package list not checked for minimality
-- script: |
- powershell -Command "(New-Object Net.WebClient).DownloadFile('http://www.cygwin.com/setup-x86_64.exe', 'setup-x86_64.exe')"
- SET CYGROOT=C:\cygwin64
- SET CYGCACHE=%CYGROOT%\var\cache\setup
- setup-x86_64.exe -qnNdO -R %CYGROOT% -l %CYGCACHE% -s %CYGMIRROR% -P rsync -P patch -P diffutils -P make -P unzip -P m4 -P findutils -P time -P wget -P curl -P git -P mingw64-x86_64-binutils,mingw64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,mingw64-x86_64-pkg-config,mingw64-x86_64-windows_default_manifest -P mingw64-x86_64-headers,mingw64-x86_64-runtime,mingw64-x86_64-pthreads,mingw64-x86_64-zlib -P python
-
- SET TARGET_ARCH=x86_64-w64-mingw32
- SET CD_MFMT=%cd:\=/%
- SET RESULT_INSTALLDIR_CFMT=%CD_MFMT:C:/=/cygdrive/c/%
- C:\cygwin64\bin\bash -l %cd%\dev\build\windows\configure_profile.sh
- displayName: 'Install cygwin'
- env:
- CYGMIRROR: "http://mirror.easyname.at/cygwin"
-
-- script: C:\cygwin64\bin\bash -l %cd%\dev\ci\azure-opam.sh
- displayName: 'Install opam'
-
-- script: C:\cygwin64\bin\bash -l %cd%\dev\ci\azure-build.sh
- displayName: 'Build Coq'
-
-- script: C:\cygwin64\bin\bash -l %cd%\dev\ci\azure-test.sh
- displayName: 'Test Coq'
+# NB: image names can be found at
+# https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted
+
+variables:
+ NJOBS: "2"
+
+jobs:
+- job: Windows
+ pool:
+ vmImage: 'vs2017-win2016'
+
+ steps:
+ - checkout: self
+ fetchDepth: 10
+
+ # cygwin package list not checked for minimality
+ - script: |
+ powershell -Command "(New-Object Net.WebClient).DownloadFile('http://www.cygwin.com/setup-x86_64.exe', 'setup-x86_64.exe')"
+ SET CYGROOT=C:\cygwin64
+ SET CYGCACHE=%CYGROOT%\var\cache\setup
+ setup-x86_64.exe -qnNdO -R %CYGROOT% -l %CYGCACHE% -s %CYGMIRROR% -P rsync -P patch -P diffutils -P make -P unzip -P m4 -P findutils -P time -P wget -P curl -P git -P mingw64-x86_64-binutils,mingw64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,mingw64-x86_64-pkg-config,mingw64-x86_64-windows_default_manifest -P mingw64-x86_64-headers,mingw64-x86_64-runtime,mingw64-x86_64-pthreads,mingw64-x86_64-zlib -P python
+
+ SET TARGET_ARCH=x86_64-w64-mingw32
+ SET CD_MFMT=%cd:\=/%
+ SET RESULT_INSTALLDIR_CFMT=%CD_MFMT:C:/=/cygdrive/c/%
+ C:\cygwin64\bin\bash -l %cd%\dev\build\windows\configure_profile.sh
+ displayName: 'Install cygwin'
+ env:
+ CYGMIRROR: "http://mirror.easyname.at/cygwin"
+
+ - script: C:\cygwin64\bin\bash -l %cd%\dev\ci\azure-opam.sh
+ displayName: 'Install opam'
+
+ - script: C:\cygwin64\bin\bash -l %cd%\dev\ci\azure-build.sh
+ displayName: 'Build Coq'
+
+ - script: C:\cygwin64\bin\bash -l %cd%\dev\ci\azure-test.sh
+ displayName: 'Test Coq'
+
+- job: macOS
+ pool:
+ vmImage: 'macOS-10.13'
+
+ steps:
+ - checkout: self
+ fetchDepth: 10
+
+ - script: |
+ set -e
+ brew update
+ brew unlink python
+ brew install gnu-time opam
+
+ opam init -a -j "$NJOBS" --compiler=$COMPILER
+ opam switch set $COMPILER
+ eval $(opam env)
+ opam update
+ opam install -j "$NJOBS" num ocamlfind${FINDLIB_VER} ounit
+ opam list
+ displayName: 'Install dependencies'
+ env:
+ COMPILER: "4.07.1"
+ FINDLIB_VER: ".1.8.0"
+ OPAMYES: "true"
+
+ - script: |
+ set -e
+
+ eval $(opam env)
+ ./configure -local -warn-error yes -native-compiler no
+ make -j "$NJOBS"
+ displayName: 'Build Coq'
+
+ - script: |
+ eval $(opam env)
+ make -j "$NJOBS" test-suite
+ displayName: 'Run Coq Test Suite'