OSDN Git Service

first pass at .travis.yml file
authorscribu <mail@scribu.net>
Mon, 25 Feb 2013 16:57:48 +0000 (18:57 +0200)
committerscribu <mail@scribu.net>
Mon, 25 Feb 2013 16:57:48 +0000 (18:57 +0200)
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..c47713f
--- /dev/null
@@ -0,0 +1,33 @@
+language: php
+
+php:
+    - 5.3
+    - 5.4
+
+env:
+    - WP_VERSION=master WP_MULTISITE=0
+    - WP_VERSION=master WP_MULTISITE=1
+    - WP_VERSION=3.5.1 WP_MULTISITE=0
+    - WP_VERSION=3.5.1 WP_MULTISITE=1
+    - WP_VERSION=3.4.2 WP_MULTISITE=0
+    - WP_VERSION=3.4.2 WP_MULTISITE=1
+
+before_install:
+    - git submodule update --init --recursive
+
+before_script:
+    # install dependencies
+    - curl -sS https://getcomposer.org/installer | php
+    - php composer.phar install --dev
+    # set up WP install
+    - WP_CORE_DIR=/tmp/wp-cli-test-core-download-cache/
+    - mkdir -p $WP_CORE_DIR
+    - wget -nv -O /tmp/wordpress.tar.gz https://github.com/WordPress/WordPress/tarball/$WP_VERSION
+    - tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR
+    # set up database
+    - mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
+    - mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot
+
+script:
+    - vendor/bin/phpunit
+    - vendor/bin/behat