-
Notifications
You must be signed in to change notification settings - Fork 1
/
travis.yml.old
89 lines (84 loc) · 2.86 KB
/
travis.yml.old
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
# 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
- TRAVIS_USE_NOX=0
- CC=/usr/local/clang-7.0.0/bin/clang
- CXX=/usr/local/clang-7.0.0/bin/clang++
- os: linux
dist: focal # Ubuntu 20.04 LTS
env:
- OS_PYTHON_VERSION=3.8
- TRAVIS_USE_NOX=0
- CC=/usr/bin/clang
- CXX=/usr/bin/clang++
# Build and run tests with all optional dependencies, including building a
# shared library with linkable third party dependencies in place.
- os: linux
dist: focal # Ubuntu 20.04 LTS
env:
- OS_PYTHON_VERSION=3.8
- DEFAULT_OPTIONAL_DEPENDENCY="ON"
- TRAVIS_USE_NOX=0
- CC=/usr/bin/clang
- CXX=/usr/bin/clang++
- BUILD_SHARED_LIB="ON"
- OPEN_SPIEL_BUILD_WITH_ORTOOLS="ON"
- OPEN_SPIEL_BUILD_WITH_ORTOOLS_DOWNLOAD_URL="https://github.com/google/or-tools/releases/download/v8.0/or-tools_ubuntu-20.04_v8.0.8283.tar.gz"
# 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:
- DEFAULT_OPTIONAL_DEPENDENCY="ON"
- TRAVIS_USE_NOX=0
## Tests using PIP
# Build and run tests without all optional dependencies (default behavior) and
# use nox
- os: linux
dist: focal # Ubuntu 20.04 LTS
env:
- OS_PYTHON_VERSION=3.8
- TRAVIS_USE_NOX=1
- CC=/usr/bin/clang
- CXX=/usr/bin/clang++
# Ubuntu 18.04
- os: linux
dist: bionic # Ubuntu 18.04
env:
- OS_PYTHON_VERSION=3.6
- TRAVIS_USE_NOX=1
- CC=/usr/local/clang-7.0.0/bin/clang
- CXX=/usr/local/clang-7.0.0/bin/clang++
# 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:
- TRAVIS_USE_NOX=1
script:
- pwd
- chmod +x install.sh
- ./install.sh
- python3 --version
- ./open_spiel/scripts/travis_script.sh