forked from Farama-Foundation/PettingZoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
114 lines (107 loc) · 3.15 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
language: python
cache: pip
jobs:
include:
- name: "Python 3.6 on Linux"
services:
- xvfb
python: 3.6
before_install:
- export AUDIODEV=null
- cd ${TRAVIS_BUILD_DIR}
- sudo apt-get install swig
- sudo apt install freeglut3-dev
- sudo apt-get install unrar
install:
- pip3 install -r requirements.txt
- pip3 install AutoROM
- AutoROM -v
script:
- pytest ./pettingzoo/tests/pytest_runner.py
- name: "Python 3.7 on Linux"
services:
- xvfb
python: 3.7
before_install:
- export AUDIODEV=null
- cd ${TRAVIS_BUILD_DIR}
- sudo apt-get install swig
- sudo apt install freeglut3-dev
- sudo apt-get install unrar
install:
- pip3 install -r requirements.txt
- pip3 install AutoROM
- AutoROM -v
script:
- pytest ./pettingzoo/tests/pytest_runner.py
- name: "Python 3.8 on Linux"
services:
- xvfb
python: 3.8
before_install:
- export AUDIODEV=null
- cd ${TRAVIS_BUILD_DIR}
- sudo apt-get install swig
- sudo apt install freeglut3-dev
- sudo apt-get install unrar
- export pz_module=atari
install:
- pip3 install -r requirements.txt
- pip3 install AutoROM
- AutoROM -v
script:
- pytest ./pettingzoo/tests/pytest_runner.py
- name: "Python 3 on macOS"
os: osx
osx_image: xcode11.4
addons:
homebrew:
packages:
- swig
- unrar
- llvm
language: shell
before_install:
- export pz_module=sisl
- export pz_render=False
install:
- pip3 install pytest
- pip3 install -r requirements.txt
- pip3 install AutoROM
- AutoROM -v
script:
- pytest ./pettingzoo/tests/pytest_runner.py
- name: "Full CI tests"
services:
- xvfb
python: 3.6
before_install:
- export AUDIODEV=null
- cd ${TRAVIS_BUILD_DIR}
- sudo apt-get install swig
- sudo apt install freeglut3-dev
- sudo apt-get install unrar
- export pz_module=classic
install:
- pip3 install -r requirements.txt
- pip3 install AutoROM
- AutoROM -v
script:
- python3 -m pettingzoo.tests.ci_test atari True True True False
- python3 -m pettingzoo.tests.ci_test classic True True True False
- python3 -m pettingzoo.tests.ci_test butterfly True True True False
- python3 -m pettingzoo.tests.ci_test mpe True True True False
- python3 -m pettingzoo.tests.ci_test magent True True True False
- python3 -m pettingzoo.tests.ci_test sisl True True True False
- pytest ./pettingzoo/tests/all_parameter_combs.py
- name: "Flake 8 tests"
install:
- pip3 install flake8
script:
- bash ./check_style.sh
- name: "Print tests"
script:
- python3 -m pettingzoo.tests.print_test
- name: "source distribution test"
- python setup.py sdist
- pip install dist/*.tar.gz --user