Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / .travis.yml @ 5cef0f13

History | View | Annotate | Download (2.26 KB)

1
# After changing this file, check it on:
2
#   http://lint.travis-ci.org/
3
#
4
sudo: false
5

    
6
language: python
7

    
8
cache:
9
  directories:
10
    - $HOME/.cache/pip
11

    
12
matrix:
13
  include:
14
    - os: linux
15
      python: 3.7
16
      dist: xenial
17
      sudo: true
18
      env:
19
      - OPTIONAL_DEPS=1
20
      - BUILD_DOCS=1
21
      - DEPLOY_DOCS=1
22
      addons:
23
        apt:
24
          packages:
25
          - libgdal-dev
26
          - graphviz
27
          - texlive
28
          - texlive-latex-extra
29
          - latexmk
30
    - os: linux
31
      python: 3.7
32
      dist: xenial
33
      sudo: true
34
      env:
35
      - OPTIONAL_DEPS=1
36
      - MINIMUM_REQUIREMENTS=1
37
      - REPORT_COVERAGE=1
38
      addons:
39
        apt:
40
          packages:
41
          - libgdal-dev
42
          - graphviz
43
    - os: linux
44
      python: 3.7
45
      dist: xenial
46
      sudo: true
47
      env:
48
      - OPTIONAL_DEPS=1
49
      - PIP_FLAGS="--pre"
50
      addons:
51
        apt:
52
          packages:
53
          - libgdal-dev
54
          - graphviz
55
    - os: osx
56
      osx_image: xcode7.3
57
      language: generic
58
      env:
59
      - TRAVIS_PYTHON_VERSION=3.6.1
60
      - OPTIONAL_DEPS=1
61
      - OSX_PKG_ENV=miniconda
62
    - os: osx
63
      language: generic
64
      env: TRAVIS_PYTHON_VERSION=3.7
65
    - python: 3.5
66
    - python: 3.6
67
    - python: 3.7
68
      dist: xenial
69
      sudo: true
70

    
71
before_install:
72
  # prepare the system to install prerequisites or dependencies
73
  - source tools/travis/before_install.sh
74
  - uname -a
75
  - printenv
76
  - if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
77
      source tools/travis/osx_install.sh;
78
    else
79
      source tools/travis/linux_install.sh;
80
    fi
81

    
82
install:
83
  # install required packages
84
  - pip install --upgrade pip
85
  - pip install --retries 3 ${PIP_FLAGS} -r requirements.txt
86
  - if [[ "${OPTIONAL_DEPS}" == 1 ]]; then
87
      pip install --retries 3 ${PIP_FLAGS} -r requirements/extras.txt;
88
    fi
89
  # install networkx
90
  - printenv PWD
91
  - pip install .
92
  # show what's installed
93
  - python --version
94
  - pip list
95

    
96
script:
97
  - if [[ "${BUILD_DOCS}" == 1 ]]; then
98
      source tools/travis/build_docs.sh;
99
    fi
100
  - source tools/travis/script.sh
101

    
102
after_success:
103
  - if [[ "${REPORT_COVERAGE}" == 1 ]]; then
104
      codecov;
105
    fi
106
  - if [[ "${BUILD_DOCS}" == 1 && "${DEPLOY_DOCS}" == 1 ]]; then
107
      source tools/travis/deploy_docs.sh;
108
    fi
109

    
110
notifications:
111
  email: false