Skip to content

Commit

Permalink
Add travis build parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
eberhardtm committed May 11, 2017
1 parent 1fc6077 commit aef007f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*~
/.babelrc
/.idea/
/nbproject/private/
Expand Down
10 changes: 10 additions & 0 deletions .travis-build/phplint
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

err=0

find "$1" -name '*.php' | while read i; do
php -l "$i"
if [ $? -ne 0 ]; then err=1; fi
done

exit $err
29 changes: 28 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
sudo: false
language: php
php:
- 7
- 7
- hhvm

install:
- nvm install 6
- npm install

script:
- ".travis-build/phplint ."
- phpunit

after_success:
- npm run prod
- rm -rf node_modules
- tar -czf properties.tar.gz *

deploy:
provider: releases
skip_cleanup: true
api_key:
secure: TtX0sXkg24KUrb3Luy4QsiNQ4PofMl4cnnsSmchHhpNNFef5Lf3GmBfFEdk4qhMDleAzpfit42OUUwVJ0xY7o60SnKqFmkBlw1EKX0p2m8FxG/QK6QnxONgXsBh6huabvXaioZJstV5cVeKtGdPVxYbH6auVwbPXFd2bcMuX9rR2PjOMu6gtHHW34rUpkk0kkdgvmlP6htGEZRVlZbmnM1qfSBziCVNsRflAeFx2YjQb+M81m9t310RSmEOSnOl86SYhwF34+oYTn/WVtWgD2cSGqBhq/RQ9VTYlCl6raMvAv2gNxUbB3bJaHzEQjrOFt21WBOOfH4t3ZOlNCZ0O82krCBIkzSc+2XRy/pKkkG7XdbCG4Ncp7WUU+KbmbJQBtvlOzEiBfz1p6YaJFGUr3/TpI3jygubFYxrE58CiEzH1NPUNlakvZ94oXnqdcpfiQ8JTyH5aU4EJzzg57GVMn4NvZcuscQlM5QsM8+TS7w0ePh05WRslaRr5JA2khRgTSpt5mILQIvu9cid4cM36n3HDC3jTbxGFlesoso26W3q1bsa6Nt/oOSsqtHr0GJfjtnOxWK7QjHg+mpjSTWfwF7Cnh3zcRFVSNu7rrq4jkUfhl1Na4/OzvacV/rt+RjCt8v3/Vapu8Wt2JH4absGMpDUc1XpvpCatiLqvKiPgKcQ=
file: properties.tar.gz
overwrite: true
on:
repo: AppStateESS/properties
branch: master
tags: true

0 comments on commit aef007f

Please sign in to comment.