forked from google-deepmind/open_spiel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
70 lines (65 loc) · 2.34 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
# For context, OpenSpiel is developed day-to-day using private continuous
# integration software.
#
# The current Travis CI setup is unpolished and verifies that open-source
# OpenSpiel builds correctly. This is done on a best-effort basis; we are not
# attached to Travis CI.
#
# If you use OpenSpiel, continuous integration improvements are welcome.
# Potential contributions include improving the CI configuration, using either
# Travis CI or another service (CircleCI, etc).
language: c
cache: pip
git:
depth: 3
# We need to link against the shared C++ Python libraries. We will be using
# the system-wide python shared libraries and headers installed in install.sh.
# We assume the same Python version between the system wide Python, python-dev,
# and the virtualenv.
matrix:
include:
# Build and run tests without all optional dependencies (default behavior)
- os: linux
dist: bionic # Ubuntu 18.04.2 LTS released on 26 April 2018
env: OS_PYTHON_VERSION=3.6
# Build and run tests with all optional dependencies
- os: linux
dist: bionic # Ubuntu 18.04.2 LTS released on 26 April 2018
env:
- OS_PYTHON_VERSION=3.6
- DEFAULT_OPTIONAL_DEPENDENCY="ON"
# Build and test on MacOS. We use a single target, with all dependencies.
- os: osx
osx_image: xcode10.3 # macOS 10.14 (Mojave), release on March 25, 2019.
env:
# Unfortunately, the build fails on MacOs for universal poker.
- BUILD_WITH_ACPC="OFF"
- DEFAULT_OPTIONAL_DEPENDENCY="ON"
## Tests using PIP
# Build and run tests without all optional dependencies (default behavior) and
# use nox
- os: linux
dist: bionic # Ubuntu 18.04.2 LTS released on 26 April 2018
env:
- OS_PYTHON_VERSION=3.6
- TRAVIS_USE_NOX=1
# Build and run tests with all optional dependencies and use nox
- os: linux
dist: bionic # Ubuntu 18.04.2 LTS released on 26 April 2018
env:
- OS_PYTHON_VERSION=3.6
- DEFAULT_OPTIONAL_DEPENDENCY="ON"
- TRAVIS_USE_NOX=1
# Build and test on MacOS. We use a single target, with all dependencies and
# use nox.
- os: osx
osx_image: xcode10.3 # macOS 10.14 (Mojave), release on March 25, 2019.
env:
- DEFAULT_OPTIONAL_DEPENDENCY="ON"
- TRAVIS_USE_NOX=1
script:
- pwd
- chmod +x install.sh
- ./install.sh
- python3 --version
- ./open_spiel/scripts/travis_script.sh