forked from EducationalTestingService/skll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (47 loc) · 1.99 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
language: python
python:
- 2.7
- 3.3
env:
- GRIDMAP=true
- GRIDMAP=false
- GRIDMAP=true SKLL_MAX_CONCURRENT_PROCESSES=1
- GRIDMAP=false SKLL_MAX_CONCURRENT_PROCESSES=1
notifications:
email: false
# Install stuff
before_install:
- if [ $GRIDMAP == "true" ]; then travis/install_sge.sh; fi
- export SGE_ROOT=/var/lib/gridengine
- export SGE_CELL=default
- export DRMAA_LIBRARY_PATH=/usr/lib/libdrmaa.so.1.0
- export GRID_MAP_REDIS_PORT=12345
- sudo mkdir /scratch/
- sudo chmod 777 /scratch/
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then wget http://repo.continuum.io/miniconda/Miniconda-2.2.2-Linux-x86_64.sh -O miniconda.sh; else wget http://repo.continuum.io/miniconda/Miniconda3-2.2.2-Linux-x86_64.sh -O miniconda.sh; fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- mv travis/.condarc $HOME
- export PATH=/home/travis/anaconda/bin:$PATH
- conda update --yes conda
install:
- conda install --yes pip python=$TRAVIS_PYTHON_VERSION atlas numpy scipy beautiful-soup six scikit-learn joblib prettytable python-coveralls
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then conda install --yes configparser futures logutils; fi
- if [ $GRIDMAP == "true" ]; then conda install --yes drmaa gridmap; fi
# Have to use pip for nose-cov because its entry points are not supported by conda yet
- pip install --use-mirrors nose-cov
- sudo rm -rf /dev/shm
- sudo ln -s /run/shm /dev/shm
- python setup.py install
# Run test
script:
- nosetests --with-cov --cov skll --cov-config .coveragerc --logging-level=ERROR
# Calculate coverage
after_success:
- coveralls --config_file .coveragerc
- tail -n 1000 /home/travis/build/EducationalTestingService/skll/tests/output/*.e*
- tail -n 1000 /home/travis/build/EducationalTestingService/skll/tests/output/*.o*
# Print out scratch job info if failed
after_failure:
- tail -n 1000 /home/travis/build/EducationalTestingService/skll/tests/output/*.e*
- tail -n 1000 /home/travis/build/EducationalTestingService/skll/tests/output/*.o*