-
Notifications
You must be signed in to change notification settings - Fork 99
/
.travis.yml
40 lines (35 loc) · 1.79 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
sudo: required
language: generic
services:
- docker
before_install:
- docker login -u="$DOCKERUSER" -p="$DOCKERPASS"
- docker login -u="$HEROKUUSER" -p="$HEROKUPASS" $HEROKUREPO
install:
- travis_wait 30 docker build -t jgontrum/spacyapi:base_v2 .
- travis_wait 30 docker build -t jgontrum/spacyapi:en_v2 -f docker/en/Dockerfile .
- travis_wait 30 docker build -t jgontrum/spacyapi:en_v2_lg -f docker/en/Dockerfile.lg .
- travis_wait 30 docker build -t jgontrum/spacyapi:en_v2_md -f docker/en/Dockerfile.md .
- travis_wait 30 docker build -t jgontrum/spacyapi:de_v2 -f docker/de/Dockerfile .
- travis_wait 30 docker build -t jgontrum/spacyapi:es_v2 -f docker/es/Dockerfile .
- travis_wait 30 docker build -t jgontrum/spacyapi:fr_v2 -f docker/fr/Dockerfile .
- travis_wait 30 docker build -t jgontrum/spacyapi:nl_v2 -f docker/nl/Dockerfile .
- travis_wait 30 docker build -t jgontrum/spacyapi:pt_v2 -f docker/pt/Dockerfile .
- travis_wait 30 docker build -t jgontrum/spacyapi:it_v2 -f docker/it/Dockerfile .
- travis_wait 30 docker build -t jgontrum/spacyapi:all_v2 -f docker/all/Dockerfile .
after_success:
- docker push jgontrum/spacyapi:base_v2
- docker push jgontrum/spacyapi:en_v2
- docker push jgontrum/spacyapi:en_v2_lg
- docker push jgontrum/spacyapi:en_v2_md
- docker push jgontrum/spacyapi:de_v2
- docker push jgontrum/spacyapi:es_v2
- docker push jgontrum/spacyapi:fr_v2
- docker push jgontrum/spacyapi:pt_v2
- docker push jgontrum/spacyapi:it_v2
- docker push jgontrum/spacyapi:nl_v2
- docker push jgontrum/spacyapi:all_v2
- docker tag jgontrum/spacyapi:en_v2 registry.heroku.com/spacy-en/web
- docker push registry.heroku.com/spacy-en/web
- docker tag jgontrum/spacyapi:de_v2 registry.heroku.com/spacy-de/web
- docker push registry.heroku.com/spacy-de/web