forked from quiet2/network-weathermap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (46 loc) · 1.18 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
sudo: false
language: php
services:
- mysql
php:
- '7.2'
- '7.1'
- '7.0'
- '5.6'
env:
- DB=mysql
before_install:
- mkdir -p build/log
- mysql -e 'CREATE DATABASE weathermaptest; GRANT ALL ON weathermaptest.* TO weathermaptest@localhost
identified by "weathermaptest"; FLUSH PRIVILEGES;'
- cp ./dev/ci/travis-composer.json ./composer.json
install:
- sudo ./dev/ci/travis-dependencies.sh
- composer install
addons:
code_climate:
repo_token: 858ba1f597a441ed0b8abfefb2db2ecc09309285da99bd165ebcf1b580ced776
artifacts:
debug: true
target_paths:
- /${TRAVIS_REPO_SLUG}/${TRAVIS_BUILD_NUMBER}
paths:
- ./travis-test-results-${TRAVIS_JOB_NUMBER}.zip
s3_region: eu-west-1
apt:
packages:
- imagemagick
- rrdtool
- xsltproc
- fping
- zip
before_script:
- mysql weathermaptest < test-suite/data/weathermap-empty.sql
- phpenv config-add dev/ci/travis.ini
after_script:
- vendor/bin/test-reporter
- php test-suite/make-failing-summary.php > test-suite/summary-failing.html
- zip -r travis-test-results-${TRAVIS_JOB_NUMBER}.zip test-suite
script:
- vendor/bin/parallel-lint --exclude app --exclude vendor .
- vendor/bin/phpunit --configuration build/phpunit.xml