forked from gap-system/gap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
54 lines (47 loc) · 2.32 KB
/
.appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# set clone depth
clone_depth: 5 # clone entire repository history if not defined
environment:
TEST_SUITES: testinstall
# To test building GAP both using the bundled libraries (zlib and GMP), as
# well as using the versions distributed with cygwin, we do the former in
# the 32 bit build and the latter in the 64 bit build. But building zlib
# does not see to work if '--coverage' is used, so we only use that flag in
# the 64 bit build.
matrix:
- CYG_ARCH: x86
CYG_ROOT: C:\cygwin
PACKAGES: "-P python27,python27-pip"
ABI: 32
- CYG_ARCH: x86_64
CYG_ROOT: C:\cygwin64
PACKAGES: "-P libgmp-devel,zlib-devel,python27,python27-pip"
CFLAGS: "--coverage"
CXXFLAGS: "--coverage"
LDFLAGS: "--coverage"
# FIXME: HPC-GAP build on AppVeyor disabled for now, as it crashes
# - CYG_ARCH: x86_64
# CYG_ROOT: C:\cygwin64
# HPCGAP: yes
# BUILDDIR: build # HPC-GAP only supports kernel extensions for of out-of-tree builds
# change to packages-stable-X.Y.tar.gz in the stable branch
cache:
- packages-master.tar.gz
install:
- '%CYG_ROOT%\setup-%CYG_ARCH%.exe -qnNdO -R %CYG_ROOT% -s http://cygwin.mirror.constant.com -l %CYG_ROOT%/var/cache/setup %PACKAGES%'
# scripts that run after cloning repository
build_script:
# If there's a newer build queued for the same PR, cancel this one
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- SET "PATH=%CYG_ROOT%\bin;%PATH%"
- python -m pip install gcovr==4.2 # for coverage reporting later on
- bash -lc "gcc --version"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./dev/ci-prepare.sh"
test_script:
- bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./dev/ci.sh"
on_success:
# make sure to use AppVeyor's Python (not Cygwin's) in the next step
- bash -lc "export PATH="/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:$PATH" ; cd $APPVEYOR_BUILD_FOLDER && ./dev/ci-gather-coverage.sh"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./dev/ci-upload-coverage.sh"