-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathappveyor.yml
75 lines (61 loc) · 1.9 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '{build}'
image:
- Ubuntu2204
- macos
configuration: Release
platform:
- x64
# Do not build feature branch with open Pull Requests.
# Note that a feature branch build may still occur on the first push to
# the branch -- see
# https://help.appveyor.com/discussions/questions/18437-skip_branch_with_pr-setting-doesnt-work
skip_branch_with_pr: true
for:
-
matrix:
only:
- image: macos
install:
- curl -Ls https://micro.mamba.pm/api/micromamba/osx-64/latest | tar -xvj bin/micromamba
- mv bin/micromamba ./micromamba
-
matrix:
only:
- image: Ubuntu2204
install:
- curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
- mv bin/micromamba ./micromamba
build_script:
# Diagnostics
- echo $PLATFORM
- echo $APPVEYOR_BUILD_WORKER_IMAGE
- echo $APPVEYOR_BUILD_FOLDER
- uname -a
- pwd
- ls
# Set up micromamba
- ./micromamba shell init -s bash --root-prefix ~/micromamba
- source ~/.bashrc
- source ~/.profile
- hash -r
- mkdir -p ~/micromamba/pkgs/
- export MAMBA_ROOT_PREFIX=~/micromamba
- export MAMBA_EXE=$(pwd)/micromamba
- . $MAMBA_ROOT_PREFIX/etc/profile.d/mamba.sh
# Create environment from build folder environment.yml and install xcube
- micromamba create --name xc --file $APPVEYOR_BUILD_FOLDER/environment.yml
- micromamba activate xc
- cd $APPVEYOR_BUILD_FOLDER
- pip install --no-deps .
# Make sure pytest is installed
- micromamba install --yes --name xc --channel conda-forge pytest attrs
# Print some diagnostics (useful for debugging)
- git status
- micromamba list
- xcube --version
- python -c "from xcube import __version__; print(f'xcube version {__version__}')"
# Run the test suite
- pytest -v --cov=xcube
# Setting NUMBA_DISABLE_JIT=1 makes unit tests way too slow, so we accept less code coverage here
# - export NUMBA_DISABLE_JIT=1
# - py.test -v --cov=xcube