forked from flow-project/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (46 loc) · 1.29 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
language: python
cache: pip
python:
- "3.5"
os: linux
dist: trusty
sudo: required
git:
depth: 1
before_install:
# Setup conda (needed for opencv, ray dependency)
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- export TEST_FLAG="True"
# Set up requirements for flow
- conda env create -f environment.yml
- source activate flow
# [sumo] dependencies and binaries
- pushd $HOME/build/flow-project
- ./flow/scripts/setup_sumo_ubuntu1404.sh
- popd
- source ~/.bashrc
# [aimsun] install the conda env and update the path to the env
- pushd $HOME/build/flow-project
- ./flow/scripts/setup_aimsun.sh
- popd
- source ~/.bashrc
- sed -i 's/\/path\/to\/envs\/aimsun_flow/\/home\/travis\/miniconda\/envs\/aimsun_flow/g' flow/config.py
- ls ../
install:
- pip install flake8 .
- pip install coveralls
- pip install nose
- pip install matplotlib
- pip install jupyter
- pip install pydocstyle
before_script:
- flake8 --version
- flake8 --show-source
- pydocstyle --convention numpy
script:
- python setup.py install
- xvfb-run --server-args="-screen 0 1024x768x24" nose2 --with-coverage
after_success:
- coveralls