-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
44 lines (36 loc) · 921 Bytes
/
.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
language: python
python:
- 2.7
- 3.6
sudo: required
addons:
hostname: gridmap.travis-ci.org
hosts:
- localhost
- localhost.localdomain
- gridmap.travis-ci.org
notifications:
email: false
# Install stuff
before_install:
- travis/install_sge.sh
- export SGE_ROOT=/var/lib/gridengine
- export SGE_CELL=default
- export DRMAA_LIBRARY_PATH=/usr/lib/gridengine-drmaa/libdrmaa.so.1.0
- export SEND_ERROR_MAIL=False
- sudo mkdir /scratch/
- sudo chmod 777 /scratch/
install:
- pip install -r requirements.txt
- pip install python-coveralls
- pip install nose-cov
- python setup.py install
# Run test
script:
- travis_wait 45 nosetests -x -d -v --with-cov --cov gridmap --cov-config .coveragerc --logging-level=DEBUG
# Calculate coverage
after_success:
- coveralls --config_file .coveragerc
# Print out scratch job info if failed
after_failure:
- tail -n 1000 /scratch/*