-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
63 lines (47 loc) · 1.36 KB
/
.travis.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
63
language: python
python:
- "3.5"
- "3.6"
os:
- linux
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
# The apt packages below are needed for sphinx builds. A full list of packages
# that can be included can be found here:
#
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
addons:
apt:
packages:
stage: Comprehensive tests
stages:
- name: Initial tests
- name: Comprehensiv tests
env:
global:
# The following versions are the 'default' for tests, unless
# overridden underneath. They are defined here in order to save having
# to repeat them for all configurations.
- PYTHON_VERSION=3.6
- NUMPY_VERSION=stable
- MAIN_CMD='pytest'
- CONDA_DEPENDENCIES='rasterio pytest'
- PIP_DEPENDENCIES=''
- SETUP_CMD=''
matrix:
- SETUP_CMD='geometa'
matrix:
include:
- os: linux
env: NUMPY_VERSION=1.12 SETUP_CMD='geometa'
- os: linux
env: NUMPY_VERSION=1.13 SETUP_CMD='geometa'
# Do a PEP8 test with flake8
- os: linux
env: MAIN_CMD='flake8 geometa --count'
stage: Initial tests
install:
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
script:
- $MAIN_CMD $SETUP_CMD