forked from mcgillmrl/metaworld_v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (50 loc) · 1.47 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
language: python
python: "3.5"
services:
- docker
addons:
apt:
packages:
- docker-ce
env:
global:
- DOCKER_COMPOSE_VERSION=1.23.2
jobs:
include:
- name: "Normal tests and pre-commit checks"
env:
- JOB_RUN_CMD="make ci-job"
- DEPLOY_FROM_THIS_JOB="true"
before_install:
# Reconfigure docker to be more efficient
- |
echo '{
"experimental": true,
"storage-driver": "overlay2",
"max-concurrent-downloads": 50,
"max-concurrent-uploads": 50
}' | sudo tee /etc/docker/daemon.json
- sudo service docker restart
# Reinstall docker compose with the specified version. For more information, see:
# https://docs.travis-ci.com/user/docker/#using-docker-compose
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Pull cached docker image
- docker pull rlworkgroup/metaworld-ci:latest
install:
- tag="rlworkgroup/metaworld-ci:${TRAVIS_BUILD_NUMBER}"
- TAG="${tag}" make build-ci
before_script:
- ci_env="$(bash <(curl -s https://codecov.io/env))"
script:
- ADD_ARGS="${ci_env}" TAG="${tag}" make run-ci RUN_CMD="${JOB_RUN_CMD}"
deploy:
provider: script
script: TAG="${tag}" make ci-deploy-docker
on:
branch: master
condition: $DEPLOY_FROM_THIS_JOB = true
notifications:
email: false