-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
58 lines (47 loc) · 1.27 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
language: php
sudo: required
services:
- docker
git:
depth: 1
php:
- 7.1
cache:
directories:
- $HOME/.composer/cache
install:
- composer install
before_script:
- docker-compose -f tests/Functional/docker-compose.yml up -d --scale kong=2
- sleep 30 # give postgresql the time to start
script:
- ./vendor/bin/phpunit
before_deploy:
## Sami
- wget http://get.sensiolabs.org/sami.phar
- php sami.phar update .sami.php
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
region: eu-west-2
bucket: docs.unikorp.io
local_dir: build/api
upload-dir: kong-admin-api/api/master
skip_cleanup: true
on:
branch: master
- provider: s3
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
region: eu-west-2
bucket: docs.unikorp.io
local_dir: build/api
upload-dir: kong-admin-api/api/$TRAVIS_TAG
skip_cleanup: true
on:
tags: true
after_script:
## Scrutinizer
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar --access-token="86bd9078d28a29fca0a80e4998931db4abb845fe3b681dfd099a9dddd0f8bd71" code-coverage:upload --format=php-clover ./build/logs/clover.xml