Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Update CI configuration
Browse files Browse the repository at this point in the history
Revertet changes to travis ci configuration and added required deployment changes to CircleCi configuration.
  • Loading branch information
MaSpeng committed Mar 22, 2018
1 parent c951719 commit e4a7c3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,10 @@ before_script:
# In case of timeouts and build failures you may want to prepend 'travis_retry' to the following commands:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install -n
- wget -O box.phar https://github.com/box-project/box2/releases/download/2.7.5/box-2.7.5.phar

# Explicitly use the phpunit from composer, not any system-wide found
script:
- php vendor/bin/phpunit --coverage-clover build/coverage/xml tests

after_success:
- php vendor/bin/codacycoverage clover build/coverage/xml

before_deploy:
- php -d phar.readonly=0 box.phar build && chmod +x build/codacy-coverage.phar

deploy:
provider: releases
skip_cleanup: true
api_key:
secure: <api-key>
file: build/codacy-coverage.phar
on:
tags: true
10 changes: 10 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ dependencies:
pre:
- curl -s http://getcomposer.org/installer | php
- php composer.phar install -n
- go get github.com/aktau/github-release
- wget -O box.phar https://github.com/box-project/box2/releases/download/2.7.5/box-2.7.5.phar

test:
post:
- php vendor/bin/phpunit --coverage-clover build/coverage/xml tests
- php bin/codacycoverage clover build/coverage/xml

deployment:
release:
tag: /[0-9]+(\.[0-9]+)*/
commands:
- php -d phar.readonly=0 box.phar build
- git config user.name $CIRCLE_PROJECT_USERNAME
- github-release upload --user $CIRCLE_PROJECT_USERNAME --repo $CIRCLE_PROJECT_REPONAME --tag $CIRCLE_TAG --name codacy-coverage.phar --file build/codacy-coverage.phar

0 comments on commit e4a7c3b

Please sign in to comment.