-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
executable file
·53 lines (44 loc) · 1.25 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
language: php
php:
- "7.2"
services:
- elasticsearch
cache:
directories:
- "./vendor"
dist: trusty
env:
- ELASTICSEARCH_HOST=127.0.0.1
before_script:
- sleep 10
- composer selfupdate
- composer install
script:
- ./vendor/bin/phpunit
- curl -L -o /tmp/translation-files.zip https://github.com/SIWECOS/translations/releases/download/latest/translation-files.zip
- unzip -o -d resources/lang /tmp/translation-files.zip
- docker build -t siwecos-business-layer .
before_deploy:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
deploy:
- provider: script
skip_cleanup: true
on:
branch: develop
script: >-
docker tag siwecos-business-layer siwecos/siwecos-business-layer:develop &&
docker push siwecos/siwecos-business-layer:develop
- provider: script
skip_cleanup: true
on:
branch: master
script: >-
docker tag siwecos-business-layer siwecos/siwecos-business-layer:latest &&
docker push siwecos/siwecos-business-layer:latest
- provider: script
skip_cleanup: true
on:
tags: true
script: >-
docker tag siwecos-business-layer siwecos/siwecos-business-layer:$TRAVIS_TAG &&
docker push siwecos/siwecos-business-layer:$TRAVIS_TAG