-
Notifications
You must be signed in to change notification settings - Fork 375
/
.travis.yml
81 lines (62 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
70
71
72
73
74
75
76
77
78
79
80
81
language: python
cache: pip
python:
- "3.5"
os: linux
dist: xenial
services:
- xvfb
sudo: required
git:
depth: 1
before_install:
# install and run pep8 and docstyle tests
- pip install pydocstyle
- pydocstyle --convention numpy
- pip install flake8
- flake8 --version
- flake8 --show-source
# 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"
- conda config --append channels https://repo.anaconda.com/pkgs/free
- conda config --append channels https://repo.anaconda.com/pkgs/pro
# Requirements for stable baselines
- sudo apt-get update && sudo apt-get install cmake libopenmpi-dev python3-dev zlib1g-dev
# 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_ubuntu1604.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
- export AIMSUN_SITEPACKAGES="/home/travis/miniconda/envs/aimsun_flow"
- export AIMSUN_NEXT_PATH="/home/user/Aimsun_Next_XXX"
# Install stable-baselines
- pip install stable_baselines==2.7.0
# Install h-baselines
- pushd $HOME
- git clone https://github.com/AboudyKreidieh/h-baselines.git
- pushd h-baselines
- pip install -e .
- popd
- popd
- ls ../
install:
- sudo apt update
- sudo apt install -y freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev
- pip install -e .
- pip install coveralls
- pip install jupyter
script:
- nose2 --with-coverage
after_success:
- coveralls