From 6443bd7f5341145c0ce744f0cd33b5b4def478b1 Mon Sep 17 00:00:00 2001 From: kenorb Date: Mon, 22 Jan 2018 18:48:17 +0000 Subject: [PATCH] Adds initial version of CI and composer.json for testing --- .travis.yml | 21 +++++++++++++++++++++ tests/build.xml | 9 +++++++++ tests/composer.json | 19 +++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .travis.yml create mode 100644 tests/build.xml create mode 100644 tests/composer.json diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d935cab --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +# .travis.yml - configuration file for the travis continuous integration service +# see http://about.travis-ci.org/docs/user/languages/php for more hints +# +language: php + +# PHP versions to test against. +# See: http://docs.travis-ci.com/user/languages/php/ +php: + - 5.6 + - 7.1 + - 7.2 + +addons: + apt: + packages: + - drush + +script: + - ant -f tests/build.xml build test +after_script: + - ant -f tests/build.xml composer-show diff --git a/tests/build.xml b/tests/build.xml new file mode 100644 index 0000000..355483b --- /dev/null +++ b/tests/build.xml @@ -0,0 +1,9 @@ + + + + + + + + diff --git a/tests/composer.json b/tests/composer.json new file mode 100644 index 0000000..2f3e288 --- /dev/null +++ b/tests/composer.json @@ -0,0 +1,19 @@ +{ + "require-dev": { + "NT/base-build-xml": "dev-build-fixes" + }, + "config": { + "bin-dir": "bin/" + }, + "minimum-stability": "dev", + "repositories": [ + { + "type": "git", + "url": "https://github.com/National-Theatre/drupal-phpunit" + }, + { + "type": "git", + "url": "https://github.com/kenorb-contrib/base-build-xml" + } + ] +}