Skip to content

Commit

Permalink
Add travis-ci test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sadok-f committed Jun 30, 2017
1 parent 8715684 commit be74997
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ language: ruby
services:
- docker

rvm:
- 2.2.0

before_install:
- docker build -t flyimg .
- docker run -t -d -i -v $(pwd):/var/www/html --name flyimg flyimg
- docker exec flyimg composer install
- docker exec flyimg vendor/bin/phpcs --config-set installed_paths vendor/escapestudios/symfony2-coding-standard

rvm:
- 2.2.0
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter

script:
- docker exec flyimg vendor/bin/phpunit tests/
- docker exec flyimg vendor/bin/phpcs --standard=PSR2 src/ tests/
- bundle exec rspec
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

notifications:
email:
Expand Down

0 comments on commit be74997

Please sign in to comment.