forked from flow-project/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (57 loc) · 1.83 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
language: python
cache: pip
python:
- "3.5"
os: linux
dist: trusty
sudo: required
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
# Requirements for Ray
- pip install opencv-python
# Setup ray from https://s3-us-west-2.amazonaws.com/ray-wheels/
- pip install https://s3-us-west-1.amazonaws.com/flow.utils/ray-0.5.3-cp35-cp35m-manylinux1_x86_64.whl
# Copy over local rllib changes (testing branch)
- pushd $HOME/build/flow-project
- git clone https://github.com/flow-project/ray.git
- cd ray && git fetch && git checkout ray_merge && cd ..
- pushd ray
- RAY_SITE_DIR=`python -c "import ray; print(ray.__path__[0])"`
- rm -rf $RAY_SITE_DIR/rllib
- ls $RAY_SITE_DIR
- cp -r python/ray/rllib $RAY_SITE_DIR/rllib
- popd
- popd
# [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
before_script:
- flake8 --version
- flake8 --show-source
script:
- python setup.py install
- nose2 --with-coverage
after_success:
- coveralls