Skip to content

Commit

Permalink
Moved from travis to circleci. Updated dependencies. Removed php7.0 s…
Browse files Browse the repository at this point in the history
…upport
  • Loading branch information
mckayb committed Feb 24, 2019
1 parent 5eaad90 commit 508d9d8
Show file tree
Hide file tree
Showing 9 changed files with 639 additions and 514 deletions.
83 changes: 83 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
version: 2
jobs:
"php-7.1":
docker:
- image: circleci/php:7.1-node-browsers
working_directory: ~/circleci
steps:
- checkout
- restore_cache:
keys:
- php71-phantasy-php-composer-{{ checksum "composer.lock" }}
- php71-phantasy-php-composer-
- run: composer install -n --prefer-dist
- save_cache:
key: php71-phantasy-php-composer-{{ checksum "composer.lock" }}
paths:
- vendor
- run: mkdir -p build/logs
- run:
name: Run Linting
command: composer lint
- run:
name: Run Tests
command: composer test

"php-7.2":
docker:
- image: circleci/php:7.2-node-browsers
working_directory: ~/circleci
steps:
- checkout
- restore_cache:
keys:
- php72-phantasy-php-composer-{{ checksum "composer.lock" }}
- php72-phantasy-php-composer-
- run: composer install -n --prefer-dist
- save_cache:
key: php72-phantasy-php-composer-{{ checksum "composer.lock" }}
paths:
- vendor
- run: mkdir -p build/logs
- run:
name: Run Linting
command: composer lint
- run:
name: Run Tests
command: composer test

"php-7.3":
docker:
- image: circleci/php:7.3-node-browsers
working_directory: ~/circleci
steps:
- checkout
- restore_cache:
keys:
- php73-phantasy-php-composer-{{ checksum "composer.lock" }}
- php73-phantasy-php-composer-
- run: composer install -n --prefer-dist
- save_cache:
key: php73-phantasy-php-composer-{{ checksum "composer.lock" }}
paths:
- vendor
- run: mkdir -p build/logs
- run:
name: Run Linting
command: composer lint
- run:
name: Run Coverage
command: composer coverage
- run:
name: Upload Coverage
command: composer upload-coverage
- store_artifacts:
path: build/html

workflows:
version: 2
build:
jobs:
- "php-7.1"
- "php-7.2"
- "php-7.3"
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ vendor
coverage
build
*.swp
.vscode
.vscode
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Phantasy-PHP [![Build Status](https://travis-ci.org/mckayb/phantasy-php.svg?branch=master)](https://travis-ci.org/mckayb/phantasy-php) [![Coverage Status](https://coveralls.io/repos/github/mckayb/phantasy-php/badge.svg?branch=master)](https://coveralls.io/github/mckayb/phantasy-php)
# Phantasy-PHP [![Coverage Status](https://coveralls.io/repos/github/mckayb/phantasy-php/badge.svg?branch=master)](https://coveralls.io/github/mckayb/phantasy-php)
Curried versions of common PHP functions.

## Getting Started
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"description": "Curried version of all PHP functions",
"type": "library",
"require": {
"php": ">=7.0.0"
"php": ">=7.1.0"
},
"require-dev": {
"phpunit/phpunit": "^6.0",
"squizlabs/php_codesniffer": "^2.8",
"satooshi/php-coveralls": "^1.0"
"phpunit/phpunit": "^7.5",
"squizlabs/php_codesniffer": "^3.4",
"php-coveralls/php-coveralls": "^2.1"
},
"license": "MIT",
"authors": [
Expand All @@ -30,7 +30,7 @@
"test": "phpunit",
"lint": "phpcs --standard=./ruleset.xml ./src ./test",
"lint-fix": "phpcbf --standard=./ruleset.xml ./src ./test",
"coverage": "phpunit --coverage-clover build/logs/clover.xml",
"upload-coverage": "coveralls -v"
"coverage": "phpunit --coverage-clover build/logs/clover.xml --coverage-html build/html",
"upload-coverage": "php-coveralls -v"
}
}
Loading

0 comments on commit 508d9d8

Please sign in to comment.