forked from api-platform/api-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (28 loc) · 1.03 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
sudo: required
services:
- docker
addons:
apt:
packages:
- docker-ce
before_install:
- sudo service postgresql stop
- wget https://kubernetes-helm.storage.googleapis.com/helm-v2.6.1-linux-amd64.tar.gz
- tar xzf helm-v2.6.1-linux-amd64.tar.gz
# wait for postgresql to shutdown
- while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done
script:
- if [[ $(jq '.extra.symfony.id' api/composer.json) != '""' ]]; then echo 'symfony.id must be empty' 1>&2 && false; fi
- docker-compose up -d
- linux-amd64/helm lint api/helm/api/
- sleep 30
- docker-compose exec -T php composer req sensiolabs/security-checker
- docker-compose exec -T php bin/console security:check
- curl http://localhost # Client
- curl http://localhost:81 # Admin
- curl http://localhost:8080 # API
- curl http://localhost:8081 # Varnish
- curl -k https://localhost # Client (HTTP/2)
- curl -k https://localhost:444 # Admin (HTTP/2)
- curl -k https://localhost:8443 # API (HTTP/2)
- curl -k https://localhost:8444 # Varnish (HTTP/2)