-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
36 lines (36 loc) · 1.22 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
language: python
python:
sudo: false
install:
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# setup modelrunner
- conda create -n modelrunner python=3
# setup coverage
- conda install --yes -n modelrunner coverage nose
# - conda install --yes -n modelrunner -c conda-forge python-coveralls
services:
- redis-server
before_script:
# setup primary, worker(s)
- source activate modelrunner
- python setup.py install
script:
- nosetests --with-coverage
# now do more complete server level tests
- ./scripts/start_primary.sh
- ./scripts/start_worker.sh test
- ./scripts/start_worker.sh test_2
- sleep 1
- for pid_file in *.pid; do p=`cat $pid_file`; echo "$pid_file $p"; done
# test job runs to completion and then another is killed
- ./testing/test_full.sh http://localhost:8080
# test 2 jobs created, one is killed, other runs to completion
- ./testing/test_queueing.sh http://localhost:8080
after_success: coveralls