aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-15 09:47:40 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-03-15 09:47:40 +0100
commit4d9c70d234a81511bc3fdb751275fe66428e8570 (patch)
tree59d72ae8125b44ef718be49c8ce88db7585ffc2a /.travis.yml
parent7f9e75a52458c09e9546ee151a34767adf414139 (diff)
downloadRegistry-4d9c70d234a81511bc3fdb751275fe66428e8570.zip
Registry-4d9c70d234a81511bc3fdb751275fe66428e8570.tar.gz
Registry-4d9c70d234a81511bc3fdb751275fe66428e8570.tar.bz2
CI: Set up Travis.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml57
1 files changed, 57 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..1796bf5
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,57 @@
+language: php
+
+matrix:
+ include:
+ - php: 5.5
+ - php: 5.6
+ - php: 7.0
+ - php: 7.1
+ env:
+ - ENABLE_XDEBUG=true
+ - php: 7.1
+ env:
+ - ENABLE_DEVTOOLS=true
+ - php: nightly
+ - php: hhvm-3.12
+ sudo: required
+ dist: trusty
+ group: edge
+ - php: hhvm
+ sudo: required
+ dist: trusty
+ group: edge
+ allow_failures:
+ - php: nightly
+ - php: hhvm-3.12
+ - php: hhvm
+ fast_finish: true
+
+os:
+ - linux
+
+notifications:
+ irc: "chat.freenode.net#hoaproject"
+
+sudo: false
+
+env:
+ global:
+ - secure: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCAqo0v7SqI4ONxtf95JCsoLDy6AX8bPS/oiT2shVvUfrUphcackxIKE7/JQLVTL82dqai1LKl1FZCvHGeaZ6BjbLkbvvotHT4hFjzyx0BhWj7u/JWMsncGdTxSSUzVHiY0SnHe4I9/S6f+zPBiTJJkzJE7x4IUiTleTMASj+8+QQ=="
+
+cache:
+ directories:
+ - vendor/
+
+before_script:
+ - export PATH="$PATH:$HOME/.composer/vendor/bin"
+ - if [[ ! $ENABLE_XDEBUG ]]; then
+ phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it.";
+ fi
+
+script:
+ - composer install
+ - vendor/bin/hoa test:run
+ - if [[ $ENABLE_DEVTOOLS ]]; then
+ composer global require friendsofphp/php-cs-fixer;
+ vendor/bin/hoa devtools:cs --diff --dry-run .;
+ fi