-
Notifications
You must be signed in to change notification settings - Fork 9
/
appveyor.yml
63 lines (53 loc) · 1.72 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
version: '{build}'
image:
- Ubuntu2204
- macos
configuration: Release
platform:
- x64
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:
# 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
# Clone xcube repository, install xcube dependencies with micromamba,
# and do a source install of the latest version of xcube.
- git clone https://github.com/dcs4cop/xcube $HOME/xcube
- micromamba create --name xc --file $HOME/xcube/environment.yml
- micromamba activate xc
- cd $HOME/xcube
- pip install -ve .
# Use micromamba to install all xcube-sh dependencies *except* xcube
# (already manually installed), then source-install xcube-sh.
- cd $APPVEYOR_BUILD_FOLDER
- grep -v "^ - xcube" environment.yml > env_no_xcube.yml
- micromamba install --yes --name xc --file env_no_xcube.yml
- pip install -ve .
# Make sure pytest is installed
- micromamba install --yes --name xc --channel conda-forge pytest attrs
# Print some diagnostics (useful for debugging)
- micromamba list
- xcube --version
- python -c "from xcube_sh.version import version; print(f'xcube_sh version {version}')"
# Run the test suite
- python -m pytest