forked from openai/retro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (62 loc) · 1.43 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
git:
depth: false
cache:
- ccache
- directories:
- $HOME/roms/
language: cpp # Needed for ccache
env:
- PYVER=3.5
- PYVER=3.6
os:
- linux
- osx
services:
- docker
osx_image: xcode8
matrix:
include:
- os: linux
env:
- CROSS=win64
- PYVER=3.5
- os: linux
env:
- CROSS=win64
- PYVER=3.6
before_script:
- mkdir -p $HOME/roms
script:
- |
if [ -n "$CROSS" ]; then
TAG=$CROSS
else
TAG=$TRAVIS_OS_NAME
fi
- >
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
curl -o miniconda.sh https://repo.continuum.io/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-cloud pytest
python travis.py
fi