forked from ecmwf/magics-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.appveyor.yml
62 lines (49 loc) · 1.6 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
#---------------------------------#
# general configuration #
#---------------------------------#
version: 1.0.6-{build}-{branch}
branches:
only:
- master
image: Visual Studio 2015
environment:
matrix:
- CONDA: c:\Miniconda37-x64
global:
ECMWF: c:\ecmwf
GIT_CLONE_DIR: $(ECMWF)\git
MAGICS_PYTHON_SRC: $(GIT_CLONE_DIR)\magics-python
MAGICS_CXX_SRC: $(GIT_CLONE_DIR)\magics
MAGICS_PYTHON_TESTS: $(MAGICS_CXX_SRC)\test\python
# scripts that are called at very beginning, before repo cloning
init:
# make sure git clones symlinks as symlinks
- cmd: git config --global core.symlinks true
# activate conda environment
- cmd: call %CONDA%\Scripts\activate.bat
# auto-yes for conda
- cmd: conda config --set always_yes yes
# update conda
- cmd: conda update -n base -c conda-forge conda
clone_folder: $(MAGICS_PYTHON_SRC)
clone_depth: 1
# scripts that run after cloning repository
install:
# get magics-cxx for the test/python test scripts
- cmd: git clone --depth 1 https://github.com/ecmwf/magics.git %MAGICS_CXX_SRC%
# install deps
- cmd: conda install xarray scipy cftime
- cmd: conda install -c conda-forge magics pytest
# remove python interface bundled with magics
- cmd: rm -r %CONDA%\Lib\site-packages\Magics
#---------------------------------#
# build configuration #
#---------------------------------#
build: off
#---------------------------------#
# tests configuration #
#---------------------------------#
test_script:
- cmd: cd %MAGICS_PYTHON_SRC%
- cmd: set PYTHONPATH=%PYTHONPATH%;%MAGICS_PYTHON_SRC%
- cmd: pytest