-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
38 lines (32 loc) · 990 Bytes
/
.gitlab-ci.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
image: chaplean/php:7.1-no-xdebug
services:
- name: chaplean/mysql:mariadb10.1
alias: mysql
variables:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: app_user
MYSQL_PASSWORD: app_password
MYSQL_DATABASE: test_database
cache:
paths:
- bin/
- vendor/
before_script:
- mkdir -p /root/.ssh
- cp ./private/ssh/* /root/.ssh/
- chmod 600 /root/.ssh/*
- cp app/config/parameters.yml.dist app/config/parameters.yml
- composer install --prefer-dist --no-interaction
- chmod -R +x ./bin/
test:
stage: test
script:
- phpdbg -qrr ./bin/phpunit --configuration phpunit.xml.dist --colors=never --coverage-html coverage/ --coverage-text
artifacts:
paths:
- coverage/
expire_in: 1 day
deploy:
stage: deploy
script:
- ssh chaplean@satis.chaplean.coop /home/www/chaplean.coop/satis/bin/satis build /home/www/chaplean.coop/satis/satis.json /home/www/chaplean.coop/satis/web