File: .travis.yml

package info (click to toggle)
eccodes-python 2%3A2.39.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,856 kB
  • sloc: python: 3,455; sh: 326; ansic: 276; makefile: 81; cpp: 30
file content (40 lines) | stat: -rw-r--r-- 1,165 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
# Based on http://conda.pydata.org/docs/travis.html
language: minimal
sudo: false # use container based build

matrix:
  fast_finish: true
  include:
    - env: ENV=py36
    - env: ENV=py37

before_install:
  - wget http://repo.continuum.io/miniconda/Miniconda3-3.16.0-Linux-x86_64.sh -O miniconda.sh;
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
  - conda update -q conda
  - conda info -a

install:
  - conda env create -n test_env --file ci/requirements-$ENV.yml;
  - source activate test_env
  - conda list
  - pip install --no-deps -e .

script:
  - black --check .
  - which python
  - python --version
  - python -c "import eccodes"
  - if [[ "$ENV" == "docs" ]]; then
    sphinx-build -W -b html docs build/sphinx/html;
    elif [[ "$ENV" == *"-qc" ]]; then
    pytest -v --flakes --doctest-glob="*.rst" --cov=eccodes --cov=gribapi --cov-report term-missing --pep8 --mccabe $EXTRA_FLAGS;
    else
    pytest -v --cov=eccodes --cov=gribapi --cov-report term-missing $EXTRA_FLAGS;
    fi

after_success:
  - coveralls