-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (41 loc) · 1.04 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
language: php
sudo: false
php:
- 7.0
- 7.1
- 7.2
- 7.3
env:
- DB_DRIVER=mysql DB_DATABASE=test DB_SERVER=127.0.0.1 DB_USER=root DB_PASSWORD=
services:
- mysql
before_install:
- nvm install 8
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
install:
- composer install
- npm install
- npm run docs:build
## Cache composer
cache:
directories:
- $HOME/.composer/cache
- "node_modules"
before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
script:
- vendor/bin/phpcs --standard=psr2 --ignore=src/web/assets/*/dist/*,src/migrations/m* src/
- php vendor/bin/codecept run unit -vvv -d --coverage --coverage-xml
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover tests/_output/coverage.xml
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
target-branch: gh-pages
keep-history: true
local-dir: docs/.vuepress/dist
on:
branch: master
fqdn: organizations.flipboxfactory.com