forked from elkarte/Elkarte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (64 loc) · 1.67 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
sudo: required
language: php
dist: xenial
matrix:
include:
- php: 7.1
env:
- DB=mysql-5.7
- WEBTESTS=false
- COVERAGE=true
- php: 7.3
env:
- DB=mysql-5.7
- WEBTESTS=true
- COVERAGE=true
- php: 7.3
env:
- DB=postgres-9.6
- WEBTESTS=false
- COVERAGE=true
addons:
postgresql: "9.6"
- php: 7.2
env:
- DB=mariadb-10.3
- WEBTESTS=false
- COVERAGE=false
addons:
mariadb: '10.3'
- language: node_js
node_js:
- "node"
php:
# none
install:
- npm install --save-dev jshint stylelint stylelint-order stylelint-config-recommended
before_script:
# nothing
script:
- node_modules/jshint/bin/jshint .
- stylelint "**/*.css"
after_script:
# nothing
fast_finish: true
services:
- memcached
- mysql
# Prepare the server (PHP, Apache, PHPUnit, APCu etc)
install:
- chmod +x tests/travis-ci/*.sh
- tests/travis-ci/setup-server.sh $DB $TRAVIS_PHP_VERSION $WEBTESTS $COVERAGE
- tests/travis-ci/setup-selenium.sh $DB $TRAVIS_PHP_VERSION $WEBTESTS $COVERAGE
# Install ElkArte
before_script:
- tests/travis-ci/setup-elkarte.sh $DB $TRAVIS_PHP_VERSION $WEBTESTS $COVERAGE
# Run the PHPUnit tests
script:
- /var/www/tests/travis-ci/setup-script.sh $DB $TRAVIS_PHP_VERSION $WEBTESTS $COVERAGE
# Send coverage reports
after_script:
- /var/www/tests/travis-ci/setup-results.sh $DB $TRAVIS_PHP_VERSION $WEBTESTS $COVERAGE
# Output screen shots, error logs etc
after_failure:
- /var/www/tests/travis-ci/setup-failure.sh $DB $TRAVIS_PHP_VERSION $WEBTESTS $COVERAGE