forked from BoldGrid/boldgrid-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
70 lines (65 loc) · 2.73 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
language: php
services:
# Specifically including MySQL was not needed with Trusty, but other environments do need it.
- mysql
notifications:
slack:
secure: "GYRxUZH53f/OdEhgn4w908Ivuyl4h/p05kR1Buv0ovDEiSbuesWvqa3LMlXy8J67dLZpkFxToM4tlNCFdykNNHnKLHb1EqgjShIpRcgKppOA0L/87UrtjS+5OhAJAghnQr8KOuj+Ivn7zFVHS8+WBvLWKEeP7zrW/K1IqNrvUjzVcg9xSzLL/q6l/yLaAxqtCX4jXudg5HmtK7QTTQEjFSnnNW4J4hWbrKGHH43C5+9msUT7Mqo3mNjJf1tKGm+HJ5NN2wk3x/SzVEFdUJIUoFVAoG1CjOZKPqfKi7I9VStaC6sGhhiq53Sn7rbmbPJqH3ZD+Q3GaE/sqc5RxuC/34Bn1rGPs3H7RGi5DAAz7f5fHpaZWsux4b+QvLwVx7FHky44uGzPPgzN7+jJxwXh1RBd6yZq6551mHDvOdF77RPJlTJ1UukqQFjqMLNUISX9Pv6cQPealEXjFM7fOMofGyIAkJQusDczIekIZqB5W44i4XwBjKMky+47CZK9Ac41HSpJdpLs+jVa1G7N8Kb/mNSzGx4ABGbXLt+V0YphAL2+WPJ1DEYRZZVCcEzwJl/M5CFOBiUAcd9B3ZpFXoYBxyfjReJFUY7xMVozRXB7hu6RatmLhh+mYbL48572eq01wMxtfr/Klr82PwzoSX5qujWZv2ksxJTiRbPJcBk22YQ="
matrix:
include:
-
php: 5.6
dist: xenial
before_script:
- nvm install 10
- nvm use 10
- yarn install
- composer self-update --1
# Lock file has phpunit 7. Remove it and install phpunit 5 for php 5.6.
- composer remove --dev phpunit/phpunit && composer require --dev phpunit/phpunit ^5
- composer install -o
- bash bin/install-wp-tests.sh wordpress_test root '' localhost 6.2
# We are only running phpcs on php 5.6. @todo fix with php 7 and 8.
- yarn run php-codesniffer
-
php: 7.4
dist: bionic
before_script:
- nvm install 10
- nvm use 10
- yarn install
- composer self-update --1
- composer remove --dev phpunit/phpunit && composer require --dev phpunit/phpunit
- composer install -o
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
-
php: 8.0
dist: xenial
before_script:
- nvm install 10
- nvm use 10
- yarn install
- composer self-update --1
- composer remove --dev phpunit/phpunit && composer require --dev phpunit/phpunit
- composer install -o
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
script:
- find . \( -name composer -o -name node_modules -o -name phpunit -o -name phpunit-polyfills -o -name code-unit-reverse-lookup \) -prune -o -name '*.php' -exec php -lf {} \; > /dev/null
- vendor/phpunit/phpunit/phpunit --debug --verbose
- yarn run js-lint
# Remove dev scripts.
- composer install -o --no-dev
deploy:
- provider: script
script: chmod +x ./bin/release.sh && ./bin/release.sh
skip_cleanup: true
on:
tags: true
php: 5.6
- provider: releases
api_key: "${GITHUB_TOKEN}"
file: "boldgrid-backup.zip"
skip_cleanup: true
on:
tags: true
php: 5.6