Skip to content

Commit

Permalink
Merge pull request #28 from Oneflow/development
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
joseandrespg authored Nov 7, 2018
2 parents bda8df8 + 5e4ff97 commit be646e9
Show file tree
Hide file tree
Showing 8 changed files with 1,741 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2
jobs:
checkout_and_test:
docker:
- image: circleci/php:7.1-node-browsers
steps:
- checkout
- run: sudo docker-php-ext-install zip
- run: sudo composer self-update
- restore_cache: # special step to restore the dependency cache if `composer.lock` does not change
keys:
- composer-v1-{{ checksum "composer.lock" }}
# fallback to using the latest cache if no exact match is found (See https://circleci.com/docs/2.0/caching/)
- composer-v1-
- run: composer install -n --prefer-dist
- save_cache: # special step to save the dependency cache with the `composer.lock` cache key template
key: composer-v1-{{ checksum "composer.lock" }}
paths:
- vendor
- run:
name: run the tests
command: composer test
- run:
name: upload coverage report
command: bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN
- save_cache:
key: v1-source-{{ .Environment.CIRCLE_SHA1 }}
paths:
- ~

workflows:
version: 2
php_coverage:
jobs:
- checkout_and_test:
context: oneflow
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
composer.lock
composer.phar
vendor/*
.DS_Store
samples/run.sh
.idea
.idea
coverage
coverage.xml
6 changes: 6 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,11 @@
],
"autoload": {
"files": ["src/OneflowSDK.php", "src/ProductionSDK.php"]
},
"require-dev": {
"phpunit/phpunit": "^6.5"
},
"scripts": {
"test": "phpunit --bootstrap vendor/autoload.php --testdox --coverage-clover=coverage.xml --coverage-html coverage --whitelist src tests"
}
}
Loading

0 comments on commit be646e9

Please sign in to comment.