-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (37 loc) · 1.13 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
language: php
php:
- '7.4'
services:
- docker
cache: bundler
jobs:
fast_finish: true
env:
global:
- DOCKER_COMPOSE=1.24.1
matrix:
- PROJECT=auth
- PROJECT=message
- PROJECT=cloud-storage
- PROJECT=application
- PROJECT=adminpanel
sudo: required
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- cd $PROJECT
- docker network create -d bridge soa
- docker-compose up -d
before_script:
- docker-compose exec php sh -c "php -d memory_limit=-1 composer.phar install -n"
- docker-compose exec php sh -c "sh post-install.sh"
script:
- docker-compose exec php sh -c "vendor/bin/phpcs --standard=PSR2 src/"
- docker-compose exec php sh -c "vendor/bin/psalm"
- docker-compose exec php sh -c "vendor/bin/phpunit tests/"
- docker-compose run postman_checks
notifications:
slack: dykyiroman:TeCiTtXOYLiODNR1iBB6H5Oy