File: .travis.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 (69 lines) | stat: -rw-r--r-- 2,395 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
65
66
67
68
69
#---------------------------------#
#      general configuration      #
#---------------------------------#

sudo: false

branches:
  only:
    - master
    - /^\d+\.\d+\.\d+$/

language: python

matrix:
  include:
    - os: linux
      dist: xenial
      env: MINICONDA_FILE="Miniconda3-latest-Linux-x86_64.sh"

env:
  global:
    - MAGICS_PYTHON_SRC=${TRAVIS_BUILD_DIR}
    - MAGICS_CXX_SRC=${MAGICS_PYTHON_SRC}/../magics
    - MAGICS_TESTS_SRC=${MAGICS_PYTHON_SRC}/../magics-test
    - MAGICS_PYTHON_TESTS=${MAGICS_TESTS_SRC}/test/gallery
    - PYTHONPATH=${PYTHONPATH}:${MAGICS_PYTHON_SRC}:.

git:
  depth: 1

before_install:
  # install conda
  - |
    MINICONDA_URL="https://repo.continuum.io/miniconda"
    curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
    bash ${MINICONDA_FILE} -b
  # activate conda
  - source ~/miniconda3/bin/activate
  # auto-yes for conda
  - conda config --set always_yes yes
  # update conda
  #- conda update -n base -c conda-forge conda

install:
  # get magics-cxx for the test/python test scripts
  - git clone --depth 1 https://github.com/ecmwf/magics.git ${MAGICS_CXX_SRC}
  - git clone --depth 1 https://github.com/ecmwf/magics-test.git ${MAGICS_TESTS_SRC}
  # install deps
  - conda install xarray scipy cftime
  - conda install -c conda-forge magics pytest black
  # remove python interface bundled with magics
  - rm -r ${CONDA_PREFIX}/lib/python*/site-packages/Magics

#---------------------------------#
#       build configuration       #
#---------------------------------#

script:
  - cd ${MAGICS_PYTHON_SRC}
  # suspend the test for now - black --check .
  - pytest

deploy:
  provider: pypi
  user: "__token__"
  password:
    secure: "GbNaC38NEN7NR7hzGj76ubG7fisKjrA+nMGvWCrfSRJrI+fo4JwDBmWU5/4hQ+H7+m/EOv9AWO/h0fFceYOUB9zjkJViXPoGSMBLxvsQ6/zG+v7ysvF1AOGcDgcE2/01w1vPRCPtqN4o9zIYVTsyE9AWRks0EV8tgSfIstRS6rbIrtqLZZhhwDxTc9y057KZSezT3qhAWgOwFK3SATXDItSLNndRHf3c86QSsum13rygkbT6A5CCuyRWNfIPaKncSUMlxfxgM+Ckge8SbRGM0iJYumeJX0sp8DHUstaMHeVu/quWjRfiMJoZ03ZibvwGLV1YHwvJz7xnzN447Ken1kZ94XY0viMeQpVjRKk6lVi9+W4uaX5r8+J8LuSkEim1CrKFcN2rLj6WHv5//IEW9khi5RemaecTY5cZPeMN8NC4VXjJ3vTM4Qzuu987Hy8fx67/aCIS2eSpVcxM8oZP8kKxa/3+Zu+hW+LH9oxfrPNhBQxbCKLtANSX6YKSwscw5Nz1TBOQxCNqFyrC8JD4uz/7nOBxQLpFruEayOvXGNfDyPAYEANR0WMG+0sDqTjtZ8LMVo4gK04WDuj+dGywKqtCW71f6pnmkkOk2v903IjAsBAQNWQhQBNBxxfiJ0ApAPwlS06Y6eRZoLDSLTuMMjg+tq+0DdDt6T6pFQYfooc="
  on:
    tags: true