forked from Farama-Foundation/Metaworld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (46 loc) · 1.33 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
language: python
python: "3.5"
services:
- docker
addons:
apt:
packages:
- docker-ce
jobs:
include:
- name: "Normal tests and pre-commit checks"
env:
- JOB_RUN_CMD="make ci-job"
- DEPLOY_FROM_THIS_JOB="true"
before_install:
# Update docker
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
# 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
# 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