forked from tensorforce/tensorforce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 1.02 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
sudo: required
dist: trusty
language: python
services:
- docker
matrix:
include:
- env:
- DOCKER_JOB_NAME='tensorforce_pytest_py2'
- DOCKER_IMAGE='tensorflow/tensorflow:latest'
- env:
- DOCKER_JOB_NAME='tensorforce_pytest_py3'
- DOCKER_IMAGE='tensorflow/tensorflow:latest-py3'
before_install:
- docker pull ${DOCKER_IMAGE}
- docker run -d --rm --name ${DOCKER_JOB_NAME} -v $(pwd):/tensorforce ${DOCKER_IMAGE} /bin/bash -c 'while true; do sleep 1; done';
install:
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'python -m pip install -U pip';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'python -m pip install pytest-xdist';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'python -m pip install gym==0.9.5';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /tensorforce && python -m pip install .';
script:
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /tensorforce && python -m pytest';
notifications:
email:
recipients:
on_success: never
on_failure: always