This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
66 lines (60 loc) · 1.79 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
# version here is only relevant for the AppVeyor CI, no need to adjust
version: '{build}'
image:
- macOS
- Ubuntu2004
platform:
- x64
environment:
# For the unit-tests, disable Numba JIT, otherwise Coverage wont reach the actual Python code
NUMBA_DISABLE_JIT: 1
# Uncomment following line if web testing breaks our build
CATE_DISABLE_WEB_TESTS: 1
# geopandas in tests break the build on appveyor (maybe the problem of gdal?)
CATE_DISABLE_GEOPANDAS_TESTS: 1
CATE_DISABLE_PLOT_TESTS: 1
CATE_DISABLE_CLI_UPDATE_TESTS: 1
for:
-
matrix:
only:
- image: macOS
install:
- curl -L https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
-
matrix:
only:
- image: Ubuntu2004
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
build_script:
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --set channel_priority strict
- conda update -q conda
- conda info -a
- conda init bash
- export CONDA_BASE=$(conda info --base)
- source $CONDA_BASE/etc/profile.d/conda.sh
- conda install -c conda-forge -n base mamba pip
- git clone https://github.com/dcs4cop/xcube.git
- git clone https://github.com/dcs4cop/xcube-cci.git
# Install xcube env and xcube
- cd xcube
- mamba env create
- conda activate xcube
- pip install -e .
# Install xcube-cci
- cd ..
- cd xcube-cci
- mamba install -c conda-forge lxml pydap aiohttp nest-asyncio
- pip install -e .
# Install cate-specific packages
- cd ..
- mamba install -c conda-forge cartopy
- pip install -e .
- conda list
- pytest -v --cov=cate tests