Skip to content

Commit

Permalink
Merge pull request #4 from ajaaleixo/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ajaaleixo authored Aug 31, 2019
2 parents a4da879 + 95a99ea commit 2e4d316
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
docker:
# Specify the version you desire here
- image: circleci/php:7.1-node-browsers

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# Using the RAM variation mitigates I/O contention
# for database intensive operations.
# - image: circleci/mysql:5.7-ram
#
# - image: redis:2.8.19

steps:
- checkout

- run: sudo apt update # PHP CircleCI 2.0 Configuration File# PHP CircleCI 2.0 Configuration File sudo apt install zlib1g-dev libsqlite3-dev
- run: sudo docker-php-ext-install zip

# Download and cache dependencies
- restore_cache:
keys:
# "composer.lock" can be used if it is committed to the repo
- v1-dependencies-{{ checksum "composer.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: composer install -n --prefer-dist

- save_cache:
key: v1-dependencies-{{ checksum "composer.json" }}
paths:
- ./vendor

# run tests with phpunit and report back to codacy
- run: ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
- run: ./vendor/bin/codacycoverage clover
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5ff9a31f3a0f4b1c8c6683b88adf37c5)](https://www.codacy.com/app/ajaaleixo/laravel-phraseapp?utm_source=github.com&utm_medium=referral&utm_content=ajaaleixo/laravel-phraseapp&utm_campaign=Badge_Grade)
[![CircleCI](https://circleci.com/gh/ajaaleixo/laravel-phraseapp/tree/master.svg?style=svg)](https://circleci.com/gh/ajaaleixo/laravel-phraseapp/tree/master)
[![Downloads](https://img.shields.io/packagist/dt/ajaaleixo/laravel-phraseapp)](https://packagist.org/packages/ajaaleixo/laravel-phraseapp)

# Laravel PhraseApp Package
Supports L5.4

Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"phpunit/phpunit": "5.7.*",
"orchestra/testbench": "~3.4",
"mockery/mockery": "0.9.*",
"phpunit/php-code-coverage": "^4.0.3"
"phpunit/php-code-coverage": "^4.0.3",
"codacy/coverage": "dev-master"
},
"autoload": {
"psr-4": {
Expand All @@ -36,4 +37,4 @@
"Tests\\": "tests"
}
}
}
}

0 comments on commit 2e4d316

Please sign in to comment.