Skip to content

Commit

Permalink
limit build process ot main branches
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafabarmshory committed Aug 30, 2019
1 parent 35e6e48 commit 6230e38
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,54 @@ notifications:
on_success: never
on_failure: always
on_error: always


language: php
php:
- '7.2'

services:
- mysql

git:
depth: 1

mysql:
database: test
username: root
encoding: utf8

before_install:
- sudo apt-get update > /dev/null
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'

install:
# Install composer packages, will also trigger dump-autoload
- travis_retry composer install --no-interaction
- travis_retry composer require codeclimate/php-test-reporter --no-interaction
# Install coveralls.phar
- wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar
- chmod +x coveralls.phar
- php coveralls.phar --version

script:
- php run.php
# CODECLIMATE_REPO_TOKEN reqired
- vendor/bin/test-reporter

after_success:
# Submit coverage report to Coveralls servers, see .coveralls.yml
- travis_retry php coveralls.phar -v
# Submit coverage report to codecov.io
- bash <(curl -s https://codecov.io/bash)

notifications:
email:
- mostafabarmshory+eeqna5hwqenxwczq7lax@boards.trello.com
on_success: never
on_failure: always
on_error: always

branches:
only:
- master
- develop

0 comments on commit 6230e38

Please sign in to comment.