diff --git .travis.yml .travis.yml
index 7eeff03..3b65331 100644
|
|
matrix: |
27 | 27 | - php: hhvm |
28 | 28 | - php: nightly |
29 | 29 | before_install: |
| 30 | - | |
| 31 | if [[ "$WP_TRAVISCI_CUSTOM_BEFORE_INSTALL_SRC" ]]; then |
| 32 | echo "Running custom BEFORE_INSTALL from $WP_TRAVISCI_CUSTOM_BEFORE_INSTALL_SRC" |
| 33 | wget -O /tmp/custom-before-install.sh "$WP_TRAVISCI_CUSTOM_BEFORE_INSTALL_SRC" |
| 34 | source /tmp/custom-before-install.sh |
| 35 | fi |
30 | 36 | - WP_CORE_DIR=/tmp/wordpress/ |
31 | 37 | - git clone https://github.com/WordPress/twentysixteen.git src/wp-content/themes/twentysixteen |
32 | 38 | - | |
33 | 39 | if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then |
34 | | mysql -e "CREATE DATABASE wordpress_tests;" -uroot |
35 | | cp wp-tests-config-sample.php wp-tests-config.php |
36 | | sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php |
37 | | sed -i "s/yourusernamehere/travis/" wp-tests-config.php |
38 | | sed -i "s/yourpasswordhere//" wp-tests-config.php |
39 | | svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer |
| 40 | mysql -e "CREATE DATABASE wordpress_tests;" -uroot |
| 41 | cp wp-tests-config-sample.php wp-tests-config.php |
| 42 | sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php |
| 43 | sed -i "s/yourusernamehere/travis/" wp-tests-config.php |
| 44 | sed -i "s/yourpasswordhere//" wp-tests-config.php |
| 45 | svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer |
40 | 46 | fi |
41 | 47 | - | |
42 | 48 | if [[ "$WP_TRAVIS_OBJECT_CACHE" == "true" ]]; then |
… |
… |
before_install: |
44 | 50 | echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini |
45 | 51 | fi |
46 | 52 | before_script: |
| 53 | - | |
| 54 | if [[ "$WP_TRAVISCI_CUSTOM_BEFORE_SCRIPT_SRC" ]]; then |
| 55 | echo "Running custom BEFORE_SCRIPT from $WP_TRAVISCI_CUSTOM_BEFORE_SCRIPT_SRC" |
| 56 | wget -O /tmp/custom-before-script.sh "$WP_TRAVISCI_CUSTOM_BEFORE_SCRIPT_SRC" |
| 57 | source /tmp/custom-before-script.sh |
| 58 | fi |
47 | 59 | - npm install -g npm |
48 | 60 | - npm install -g grunt-cli |
49 | 61 | - npm install |
50 | | script: grunt $WP_TRAVISCI |
| 62 | script: |
| 63 | - | |
| 64 | if [[ "$WP_TRAVISCI_CUSTOM_SCRIPT_SRC" ]]; then |
| 65 | echo "Running custom after_script from $WP_TRAVISCI_CUSTOM_SCRIPT_SRC" |
| 66 | wget -O /tmp/custom-script.sh "$WP_TRAVISCI_CUSTOM_SCRIPT_SRC" |
| 67 | source /tmp/custom-script.sh |
| 68 | fi |
| 69 | - grunt $WP_TRAVISCI |
| 70 | after_script: |
| 71 | - | |
| 72 | if [[ "$WP_TRAVISCI_CUSTOM_AFTER_SCRIPT_SRC" ]]; then |
| 73 | echo "Running custom after_script from $WP_TRAVISCI_CUSTOM_AFTER_SCRIPT_SRC" |
| 74 | wget -O /tmp/custom-after-script.sh "$WP_TRAVISCI_CUSTOM_AFTER_SCRIPT_SRC" |
| 75 | source /tmp/custom-after-script.sh |
| 76 | fi |
51 | 77 | notifications: |
52 | 78 | slack: |
53 | 79 | rooms: |