Browse Source

Update .travis.yml

Just adding some features inspired by other projects using Travis, e.g. a simple PHP syntax checker with various PHP versions. A short peak into @dav-m85 link leads me to think that running composer and creating the archive should be done with before_deploy rather than script.
Daniel Rudolf 9 years ago
parent
commit
d3a1308556
1 changed files with 11 additions and 1 deletions
  1. 11 1
      .travis.yml

+ 11 - 1
.travis.yml

@@ -1,10 +1,19 @@
 language: php
 language: php
 php:
 php:
+  - 5.3
   - 5.4
   - 5.4
+  - 5.5
+  - 5.6
+  - 7
+  - hhvm
+  - nightly
 
 
 script:
 script:
+  - find . -type f -name '*.php' -print0 | xargs -0 -I file php -l file > /dev/null
+
+before_deploy:
   - composer install
   - composer install
-  - tar -czf pico.tar.gz .htaccess README.md changelog.txt composer.json composer.lock config content-sample index.php lib license.txt plugins themes vendor
+  - tar -czf pico.tar.gz .htaccess README.md changelog.txt composer.json composer.lock license.txt config content-sample lib plugins themes vendor index.php
 
 
 deploy:
 deploy:
   provider: releases
   provider: releases
@@ -13,3 +22,4 @@ deploy:
   skip_cleanup: true
   skip_cleanup: true
   on:
   on:
     tags: true
     tags: true
+    php: 5.3