forked from REBELinBLUE/deployer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (70 loc) · 1.82 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
sudo: false
language: php
php:
- 7.0.8
- 7.1
- 7.2
env:
- DB=sqlite
cache:
directories:
- $TRAVIS_BUILD_DIR/vendor
- $TRAVIS_BUILD_DIR/node_modules
- $HOME/.composer/cache
matrix:
include:
- php: 7.0.8
env: DB=mysql
services:
- mysql
- php: 7.0.8
env: DB=maria
addons:
mariadb: 10.1
- php: 7.0.8
env: DB=pgsql
addons:
postgresql: "9.3"
services:
- postgresql
before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "7.1" ]]; then
phpenv config-rm xdebug.ini;
fi
install:
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
- travis_retry npm install
before_script:
- |
if [[ "$TRAVIS_PHP_VERSION" == "7.1" ]]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
fi
- cp -f $TRAVIS_BUILD_DIR/tests/.env.travis $TRAVIS_BUILD_DIR/.env
- make permissions
- make travis
script:
- composer test:lint
- php artisan migrate
- php artisan db:seed
- php artisan migrate:rollback
- composer test:phpcs
# - composer test:phpmd
- make phpunit-ci
- composer test:phpdoc
- composer test:phpcpd
- composer test:loc
# Clear the compiled file and then try to install without the dev dependencies to ensure everything still works
- travis_retry composer install --no-dev --no-interaction --prefer-dist --no-suggest --quiet
- php artisan app:version
after_script:
- |
if [[ -f clover.xml ]]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
bash <(curl -s https://codecov.io/bash)
fi
- find $TRAVIS_BUILD_DIR/storage/logs/*.log -type f -print -exec cat {} \;
- cat $TRAVIS_BUILD_DIR/.env
notifications:
email: false