forked from apioo/fusio-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 857 Bytes
/
.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
sudo: required
language: php
php:
- 7.3
services:
- docker
addons:
hosts:
- acme.com
- apps.acme.com
before_install:
- 'sed -i "s#image: fusio\/fusio#build: \.#g" docker-compose.yml'
- 'sed -i "s#80:80#8080:80#g" docker-compose.yml'
install:
- docker build --tag fusio/fusio:latest .
- if [ "$TRAVIS_TAG" != '' ]; then docker build --tag fusio/fusio:$TRAVIS_TAG .; fi;
- composer install
- docker-compose up -d
- 'while [[ $(curl -s -o /dev/null -w "%{http_code}" acme.com:8080) != "200" ]]; do sleep 5; done'
script:
- vendor/bin/phpunit
before_deploy:
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
deploy:
- provider: script
script: docker push fusio/fusio:latest
on:
branch: master
- provider: script
script: docker push fusio/fusio:$TRAVIS_TAG
on:
tags: true
branch: master