Skip to content
Snippets Groups Projects
Commit 18899e6f authored by Vicki Pfau's avatar Vicki Pfau
Browse files

travis: Use Dockerfile for travis image

parent f34518c3
No related branches found
No related tags found
No related merge requests found
before_script:
- git fetch --unshallow || true
- mkdir -p $HOME/roms
git:
depth: false
cache:
- ccache
- directories:
......@@ -12,8 +13,7 @@ matrix:
services:
- docker
before_install:
- docker login us.gcr.io -u="_json_key" -p="$GOOGLE_APPLICATION_CREDENTIALS_DATA"
- ( while true; do echo '.'; sleep 60; done ) & docker pull us.gcr.io/universe-162007/retro # Keep travis alive while pulling
- docker pull quay.io/openai/travis-build
script:
- >
docker run
......@@ -26,8 +26,8 @@ matrix:
--volume /home/travis/roms:/root/roms
--volume /home/travis/.ccache:/root/.ccache
--workdir /root/code/retro
us.gcr.io/universe-162007/retro
bash -lc 'python travis.py'
quay.io/openai/travis-build
python travis.py
- os: osx
osx_image: xcode8
before_install:
......@@ -37,5 +37,6 @@ matrix:
- hash -r
- conda install --yes python=3.6.1
- export PATH=/usr/local/opt/ccache/libexec:$PATH
- pip install wheel google-cloud pytest pytest-xdist
script:
- python travis.py
FROM ubuntu:xenial
SHELL ["/bin/bash", "-c"]
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential ccache cmake git libffi-dev libgit2-dev libpython3-dev \
libzip-dev pkg-config python3-venv && \
apt-get clean && \
python3 -m venv ~/venv && \
. ~/venv/bin/activate && \
pip install wheel && \
pip install google-cloud google-resumable-media matplotlib pygit2==0.24.2 pytest requests && \
rm -r ~/.cache && \
echo "source /root/venv/bin/activate" > ~/.bash_profile
ENTRYPOINT ["bash", "-lc", "exec $0 $@"]
......@@ -57,7 +57,6 @@ def test():
def plot_history():
call(['pip', 'install', '-U', 'matplotlib', 'pygit2==0.24.2'])
import scripts.plot_history as plot
plot.main()
......@@ -77,7 +76,6 @@ def main():
with Fold('script.build', 'Building'):
call(['cmake', '.', '-DBUILD_TESTS=ON'])
call(['python', 'setup.py', '-q', 'build_ext', '-i', '-j3'])
call(['pip', 'install', 'wheel', 'google-cloud', 'pytest', 'pytest-xdist'])
call(['pip', 'install', '-e', '.'])
call(['make', '-j3'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment