This repository has been archived by the owner on Jun 28, 2023. It is now read-only.
forked from openai/retro
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
72 lines (70 loc) · 1.64 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
git:
depth: false
cache:
- ccache
- directories:
- $HOME/roms/
language: cpp # Needed for ccache
env:
- PYVER=3.6
- PYVER=3.7
- PYVER=3.8
os:
- linux
- osx
services:
- docker
osx_image: xcode9.4 # OS X 10.13
matrix:
include:
- os: linux
env:
- CROSS=win64
- PYVER=3.6
- os: linux
env:
- CROSS=win64
- PYVER=3.7
- os: linux
env:
- CROSS=win64
- PYVER=3.8
before_script:
- mkdir -p $HOME/roms
script:
- |
if [ -n "$CROSS" ]; then
TAG=$CROSS
else
TAG=$TRAVIS_OS_NAME
fi
TAG=${TAG}-v2
- >
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run
--env PYVER="$PYVER"
--env CROSS="$CROSS"
--env TRAVIS_OS_NAME="$TRAVIS_OS_NAME"
--env TRAVIS_TAG="$TRAVIS_TAG"
--env TRAVIS_BRANCH="$TRAVIS_BRANCH"
--env TRAVIS_PULL_REQUEST="$TRAVIS_PULL_REQUEST"
--env GOOGLE_APPLICATION_CREDENTIALS_DATA="$GOOGLE_APPLICATION_CREDENTIALS_DATA"
--volume /home/travis/build/openai/retro:/root/code/retro
--volume /home/travis/.ccache:/root/.ccache
--workdir /root/code/retro
openai/retro-build:$TAG
python travis.py;
fi
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update > /dev/null
brew install qt5 capnp [email protected] ccache
curl -o miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
bash miniconda.sh -b
export PATH=/usr/local/opt/ccache/libexec:$HOME/miniconda3/bin:$PATH
hash -r
conda create -y -q -n venv python=$PYVER pip
source activate venv
pip install wheel google-auth google-cloud-storage pytest
python travis.py
fi