This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
80 lines (77 loc) · 4.39 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
branches:
only:
- master
notifications:
email:
on_failure: change
on_success: never
slack:
secure: M3p6Vzckpq2URi5bowaxHzHlhnU6RsFAQG6eGZPsZJUwWJ0lJfnnbY84aJyxqJOKkQF3rV6+aR8j9GLFuQ1NDmhUS4lhM0O3FL5jHSKXMrsSDtjjRGGCiB1a0EoE6oAHbGL38Y9Tk4pSTz7PyI+KoVIBP0yjokWYlvD/UMAwAMpTHiYe1gRku41fCDyZy6MeDfcgHohlz7K9pRvSlxkUkFYfn2FFA+JmpKe+Xj4bx2dowMcPYVqzuBEv/10/nvEOcW7vuy+0QDvNzbQ5eqA69m17J91psMTCAOT3xoECqfuEcOM//JeDhcl94U9lVtDrRShJVjUFQ4NzLj0+NID1d2h1Fk2FpigO2zs/jeanF5Hf4LOzvhl12fCJpz+C/7uaEzBrpXLR2OeFjEYR5YzRoE4IRGqprKl0XkhYfrU5DVknXYfEyMjMQ2ZTITjOoqoT9Yaro8ygA+mijOfJ8lEWdg6Q1beLoK38poIKhT4qhpHDHyBU+njCcFLVJ2uzn8Wb7Qrzk8nRgwbxqGagYSL9E/FtpebFo+bwfrTyYe2l7DSyAejEc0QhHE50+IPZ8tNneOjk26a3BaW8PF02SBm3kaNssw/RdYMKvU+j8aNjItmHZIecCkla/tvYOH5ESaBFBI2MtGSF95sSkq0GNdEMZs1/8+Wg1e7g90n4Ov8ScD0=
php:
- "5.6"
- "7.0.0"
- "7.1.0"
- "7.2.0"
matrix:
fast_finish: true
include:
- language: php
php: "5.6"
env:
- "WP_VERSION=latest WP_MULTISITE=0"
before_script:
- phpenv config-add travis-php.ini
- "find {classes,tests,admin,public} -name '*.php' -print0 | xargs -0 -n1 -P8 php -l"
- "bash bin/install-wp-tests.sh wps_unit_testing root '' localhost $WP_VERSION"
- "mysql -u root wps_unit_testing < ./tests/mock-data/_db/unit-testing-db-bootstrap.sql"
- "mkdir /tmp/wordpress-tests-lib/data/"
- "find /tmp/wordpress-tests-lib -type d -exec chmod 755 {} + && find /tmp/wordpress-tests-lib -type f -exec chmod 644 {} +"
- "svn co https://develop.svn.wordpress.org/tags/4.9.8/tests/phpunit/data/ /tmp/wordpress-tests-lib/data/"
- "find /tmp/wordpress-tests-lib -type d -exec chmod 755 {} + && find /tmp/wordpress-tests-lib -type f -exec chmod 644 {} +"
script:
- phpunit
- language: php
php: "7.0.0"
env:
- "WP_VERSION=latest WP_MULTISITE=0"
before_script:
- phpenv config-add travis-php.ini
- "find {classes,tests,admin,public} -name '*.php' -print0 | xargs -0 -n1 -P8 php -l"
- "bash bin/install-wp-tests.sh wps_unit_testing root '' localhost $WP_VERSION"
- "mysql -u root wps_unit_testing < ./tests/mock-data/_db/unit-testing-db-bootstrap.sql"
- "mkdir /tmp/wordpress-tests-lib/data/"
- "find /tmp/wordpress-tests-lib -type d -exec chmod 755 {} + && find /tmp/wordpress-tests-lib -type f -exec chmod 644 {} +"
- "svn co https://develop.svn.wordpress.org/tags/4.9.8/tests/phpunit/data/ /tmp/wordpress-tests-lib/data/"
- "find /tmp/wordpress-tests-lib -type d -exec chmod 755 {} + && find /tmp/wordpress-tests-lib -type f -exec chmod 644 {} +"
script:
- phpunit
- language: php
php: "7.1.0"
env:
- "WP_VERSION=latest WP_MULTISITE=0"
before_script:
- phpenv config-add travis-php.ini
- "find {classes,tests,admin,public} -name '*.php' -print0 | xargs -0 -n1 -P8 php -l"
- "bash bin/install-wp-tests.sh wps_unit_testing root '' localhost $WP_VERSION"
- "mysql -u root wps_unit_testing < ./tests/mock-data/_db/unit-testing-db-bootstrap.sql"
- "mkdir /tmp/wordpress-tests-lib/data/"
- "find /tmp/wordpress-tests-lib -type d -exec chmod 755 {} + && find /tmp/wordpress-tests-lib -type f -exec chmod 644 {} +"
- "svn co https://develop.svn.wordpress.org/tags/4.9.8/tests/phpunit/data/ /tmp/wordpress-tests-lib/data/"
- "find /tmp/wordpress-tests-lib -type d -exec chmod 755 {} + && find /tmp/wordpress-tests-lib -type f -exec chmod 644 {} +"
script:
- phpunit
- language: php
php: "7.2.0"
env:
- "WP_VERSION=latest WP_MULTISITE=0"
before_script:
- phpenv config-add travis-php.ini
- "find {classes,tests,admin,public} -name '*.php' -print0 | xargs -0 -n1 -P8 php -l"
- "bash bin/install-wp-tests.sh wps_unit_testing root '' localhost $WP_VERSION"
- "mysql -u root wps_unit_testing < ./tests/mock-data/_db/unit-testing-db-bootstrap.sql"
- "mkdir /tmp/wordpress-tests-lib/data/"
- "find /tmp/wordpress-tests-lib -type d -exec chmod 755 {} + && find /tmp/wordpress-tests-lib -type f -exec chmod 644 {} +"
- "svn co https://develop.svn.wordpress.org/tags/4.9.8/tests/phpunit/data/ /tmp/wordpress-tests-lib/data/"
- "find /tmp/wordpress-tests-lib -type d -exec chmod 755 {} + && find /tmp/wordpress-tests-lib -type f -exec chmod 644 {} +"
script:
- phpunit