File: .appveyor.yml

package info (click to toggle)
magics-python 2%3A1.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 500 kB
  • sloc: python: 2,530; makefile: 14
file content (64 lines) | stat: -rw-r--r-- 1,786 bytes parent folder | download | duplicates (4)
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
#---------------------------------#
#      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_TESTS_SRC: $(GIT_CLONE_DIR)\magics-test
    MAGICS_PYTHON_TESTS: $(MAGICS_TESTS_SRC)\test\gallery

# 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%
  - cmd: git clone --depth 1 https://github.com/ecmwf/magics-test.git %MAGICS_TESTS_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