Ticket #30462: 30462.2.diff
File 30462.2.diff, 5.6 KB (added by , 11 years ago) |
---|
-
.travis.yml
6 6 # Build matrix options 7 7 matrix: 8 8 include: 9 - php: 5. 59 - php: 5.6 10 10 env: WP_TRAVISCI=travis:js 11 11 - php: 5.2 12 env: WP_TRAVISCI=travis:phpunit 12 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.0 13 - php: 5.2 14 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.1 15 - php: 5.2 16 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.5 17 - php: 5.2 18 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.6 19 - php: 5.2 20 env: WP_TRAVISCI=travis:phpunit DB=MariaDB5.5 21 - php: 5.2 22 env: WP_TRAVISCI=travis:phpunit DB=MariaDB10.0 13 23 - php: 5.3 14 env: WP_TRAVISCI=travis:phpunit 24 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.0 25 - php: 5.3 26 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.1 27 - php: 5.3 28 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.5 29 - php: 5.3 30 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.6 31 - php: 5.3 32 env: WP_TRAVISCI=travis:phpunit DB=MariaDB5.5 33 - php: 5.3 34 env: WP_TRAVISCI=travis:phpunit DB=MariaDB10.0 15 35 - php: 5.4 16 env: WP_TRAVISCI=travis:phpunit 36 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.0 37 - php: 5.4 38 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.1 39 - php: 5.4 40 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.5 41 - php: 5.4 42 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.6 43 - php: 5.4 44 env: WP_TRAVISCI=travis:phpunit DB=MariaDB5.5 45 - php: 5.4 46 env: WP_TRAVISCI=travis:phpunit DB=MariaDB10.0 17 47 - php: 5.5 18 env: WP_TRAVISCI=travis:phpunit 48 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.0 49 - php: 5.5 50 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.1 51 - php: 5.5 52 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.5 53 - php: 5.5 54 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.6 55 - php: 5.5 56 env: WP_TRAVISCI=travis:phpunit DB=MariaDB5.5 57 - php: 5.5 58 env: WP_TRAVISCI=travis:phpunit DB=MariaDB10.0 19 59 - php: 5.6 20 env: WP_TRAVISCI=travis:phpunit 60 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.0 61 - php: 5.6 62 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.1 63 - php: 5.6 64 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.5 65 - php: 5.6 66 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.6 67 - php: 5.6 68 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.7 69 - php: 5.6 70 env: WP_TRAVISCI=travis:phpunit DB=MariaDB5.5 71 - php: 5.6 72 env: WP_TRAVISCI=travis:phpunit DB=MariaDB10.0 21 73 - php: hhvm 22 env: WP_TRAVISCI=travis:phpunit 74 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.6 75 - php: hhvm-nightly 76 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.6 23 77 allow_failures: 24 78 - php: hhvm 79 - php: hhvm-nightly 80 - php: 5.6 81 env: WP_TRAVISCI=travis:phpunit DB=MySQL5.7 25 82 fast_finish: true 26 83 27 84 # Before install, failures in this section will result in build status 'errored' … … 29 86 - WP_CORE_DIR=/tmp/wordpress/ 30 87 - > 31 88 if [[ "$WP_TRAVISCI" == "travis:phpunit" ]]; then 32 mysql -e "CREATE DATABASE wordpress_tests;" -uroot 89 sudo apt-get install -y perl libaio1 libaio-dev 90 curl -L https://cpanmin.us | sudo perl - App::cpanminus 91 sudo cpanm MySQL::Sandbox 92 if [[ "$DB" == "MySQL5.0" ]]; then 93 SANDBOX_FILE=mysql-5.0.96-linux-x86_64-glibc23.tar.gz 94 wget http://downloads.mysql.com/archives/get/file/"$SANDBOX_FILE" 95 fi 96 if [[ "$DB" == "MySQL5.1" ]]; then 97 SANDBOX_FILE=mysql-5.1.72-linux-x86_64-glibc23.tar.gz 98 wget http://downloads.mysql.com/archives/get/file/"$SANDBOX_FILE" 99 fi 100 if [[ "$DB" == "MySQL5.5" ]]; then 101 SANDBOX_FILE=mysql-5.5.39-linux2.6-x86_64.tar.gz 102 wget http://downloads.mysql.com/archives/get/file/"$SANDBOX_FILE" 103 fi 104 if [[ "$DB" == "MySQL5.6" ]]; then 105 SANDBOX_FILE=mysql-5.6.20-linux-glibc2.5-x86_64.tar.gz 106 wget http://downloads.mysql.com/archives/get/file/"$SANDBOX_FILE" 107 fi 108 if [[ "$DB" == "MySQL5.7" ]]; then 109 SANDBOX_FILE=mysql-5.7.5-m15-linux-glibc2.5-x86_64.tar.gz 110 wget http://cdn.mysql.com/Downloads/MySQL-5.7/"$SANDBOX_FILE" 111 fi 112 if [[ "$DB" == "MariaDB5.5" ]]; then 113 SANDBOX_FILE=mariadb-5.5.40-linux-x86_64.tar.gz 114 wget https://downloads.mariadb.org/interstitial/mariadb-5.5.40/bintar-linux-x86_64/"$SANDBOX_FILE" 115 fi 116 if [[ "$DB" == "MariaDB10.0" ]]; then 117 SANDBOX_FILE=mariadb-10.0.14-linux-x86_64.tar.gz 118 wget http://sfo1.mirrors.digitalocean.com/mariadb/mariadb-10.0.14/bintar-linux-x86_64/"$SANDBOX_FILE" 119 fi 120 sudo chown -R travis:travis ~/sandboxes 121 make_sandbox "$SANDBOX_FILE" -- -u travis -p travis -P 3310 -d msb --no_confirm 122 ~/sandboxes/msb/use -e "CREATE DATABASE wordpress_tests;" 33 123 cp wp-tests-config-sample.php wp-tests-config.php 124 sed -i "s/yourpasswordhere/travis/" wp-tests-config.php 125 sed -i "s/'localhost'/'127.0.0.1:3310'/" wp-tests-config.php 34 126 sed -i "s/youremptytestdbnamehere/wordpress_tests/" wp-tests-config.php 35 127 sed -i "s/yourusernamehere/travis/" wp-tests-config.php 36 sed -i "s/yourpasswordhere//" wp-tests-config.php37 128 svn checkout https://plugins.svn.wordpress.org/wordpress-importer/trunk tests/phpunit/data/plugins/wordpress-importer 38 129 fi 39 130 … … 40 131 # Before script, failures in this section will result in build status 'failed' 41 132 before_script: 42 133 - npm install -g grunt-cli 134 - npm update -g 43 135 - npm install 44 136 45 137 # Script, failures in this section will result in build status 'failed'