forked from Farama-Foundation/Miniworld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
21 lines (17 loc) · 797 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: python
python:
- "3.5"
# Commands to install dependencies
install:
- pip3 install -e .
- pip3 install flake8
- pip3 install --quiet torch
- sudo apt-get install -y freeglut3-dev
# Commands to run tests
script:
# Check the source code for obvious errors
- python3 -m flake8 . --count --show-source --statistics --select=E901,E999,F821,F822,F823
# Test the simulator
- xvfb-run -a -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" ./run_tests.py
# Test RL code quickly
- cd pytorch-a2c-ppo-acktr && xvfb-run -a -s "-screen 0 1024x768x24 -ac +extension GLX +render -noreset" time python3 main.py --no-cuda --algo a2c --log-interval 1 --num-frames 200 --num-processes 1 --num-steps 80 --lr 0.00005 --env-name MiniWorld-Hallway-v0