diff --git a/README.md b/README.md index 2bb6bd0..5629fd8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -php-buildsample -=============== +Sample PHP +===============+ -Build sample for PHP +Build sample for standalone PHP build sample. + +This sample is built for Shippable, a docker based continuous integration and deployment platform. diff --git a/bas.sh b/bas.sh new file mode 100644 index 0000000..7348aa3 --- /dev/null +++ b/bas.sh @@ -0,0 +1,11 @@ +git --version +version=`git --version | awk '{print $3}'` +echo $version +version=( ${version//./ } ) +echo ${version[0]} +echo ${version[1]} +if [ "${version[0]}" -gt "1" ] || ( [ "${version[0]}" -eq "1" ] && [ "${version[1]}" -gt "8" ] ); then + echo "Compatible" +else + echo "Not compatible" +fi; diff --git a/shippable.yml b/shippable.yml index 3e14b92..60ef416 100644 --- a/shippable.yml +++ b/shippable.yml @@ -1,15 +1,41 @@ -language: php +language: + - php php: - - 5.4 + #- 5.3 + #- 5.4 + - 5.5 + - 5.6 + before_script: - mkdir -p shippable/codecoverage - mkdir -p shippable/testresults script: - - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php + - chmod +x bas.sh + - ./bas.sh + - phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage tests/calculator_test.php -notifications: - email: false - +notifications: + #email: + #recipients: + # - chandrakanth@shippable.com + #- vishal.chandru@gmail.com + #- -- last_committer + #on_success: change + #on_failure: change + #on_start: always + #on_pull_request: never + slack: + account_integration: 5656d1abf598e60c00835e98 + recipients: + - '#prod' + on_success: always + on_failure: always + on_start: always + on_pull_request: always + #irc: + # pull_requests: true + #channels: + # - "chat.freenode.net#chandratest"