-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
29 lines (25 loc) · 991 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
sudo: required
env:
matrix:
- PHP=7.1
- PHP=7.2
- PHP=7.3
services:
- docker
before_script:
- sudo sysctl -w vm.max_map_count=262144
- cp docker/.env.dist docker/.env
- sed -i "s/7.3/$PHP/g" docker/.env.dist
- sed -i "/\- ..\/sql:\/var\/lib\/mysql/d" docker/docker-compose.yml.dist
- sed -i "s/.\/logs\/nginx\//\/tmp\/nginx/g" docker/docker-compose.yml.dist
- cd docker
- bash ./docker.sh -d
- docker exec -i -u www-data np_php bash -c "cd ../; rm -rf www; composer create-project symfony/website-skeleton www"
- docker exec -i -u www-data np_php bash -c "composer require encore"
- docker-compose stop
- rm nginx/default.conf.dist nginx/silverstripe4.conf.dist nginx/symfony3.conf.dist
- bash ./docker.sh -d
script:
- docker exec -i -u www-data np_php bash -c "php bin/phpunit"
- docker exec -i -u www-data np_php bash -c "yarn install"
- docker exec -i -u www-data np_php bash -c "yarn build"