-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
69 lines (60 loc) · 1.85 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
64
65
66
67
68
69
#
# Travis CI configuration file
#
# ICRAR - International Centre for Radio Astronomy Research
# (c) UWA - The University of Western Australia, 2016
# Copyright by UWA (in the framework of the ICRAR)
# All rights reserved
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
# To use docker later...
sudo: required
# let's go!
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
# We want to use docker during the tests
services:
- docker
# Try to speed up builds by caching our dependencies
cache: pip
# Support for coveralls
before_install:
- pip install coveralls pytest pytest-cov
- pip install -U setuptools
# install daliuge
# We use pip first to make use of the cache
# and later run with the setuptools approach
# to make sure we generate our version file
install:
- pip install .
- python setup.py install
# run the tests, making sure subprocesses generate coverage information
script:
- mkdir tmp
- echo -e "import coverage\ncoverage.process_startup()" > tmp/sitecustomize.py
- PYTHONPATH=$PWD/tmp DALIUGE_TESTS_RUNLONGTESTS=True py.test --cov
# Publish to coveralls (only once per commit, so only using one environment)
after_success:
- coveralls
# safelist
branches:
only:
- master