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