Skip to content

Commit

Permalink
travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfoot90 committed Nov 6, 2017
1 parent 07420fb commit 26e77e8
Show file tree
Hide file tree
Showing 6 changed files with 2,318 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Expand Up @@ -41,6 +41,6 @@ jobs:
name: Run Unit tests
command: vendor/bin/phpunit --coverage-clover=coverage.xml

- run:
name: Codecov
command: bash <(curl -s https://codecov.io/bash)
# - run:
# name: Codecov
# command: bash <(curl -s https://codecov.io/bash)
1 change: 0 additions & 1 deletion .gitignore
@@ -1,4 +1,3 @@
/composer.lock
/phpunit.xml
/vendor/
.env
42 changes: 42 additions & 0 deletions .travis.yml
@@ -0,0 +1,42 @@
language: php

sudo: false

php:
- 7.1
- hhvm
- nightly

env:
- dependencies=highest
- dependencies=lowest

matrix:
fast_finish: true
allow_failures:
- php: hhvm

install:
- composer install -n

before_script:
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest --prefer-stable -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update --prefer-stable -n; fi;

script:
- phpunit --coverage-clover=coverage.xml
- bash <(curl -s https://codecov.io/bash)

# Lowest
- composer update --prefer-lowest
- phpunit --coverage-clover=coverage.xml
- bash <(curl -s https://codecov.io/bash)

notifications:
email:
on_success: never
on_failure: always

cache:
directories:
- $COMPOSER_CACHE_DIR
10 changes: 9 additions & 1 deletion README.md
@@ -1,3 +1,11 @@
## PHPacto - Contract testing solution
# PHPacto
Contract testing solution for your applications

[![License](https://img.shields.io/packagist/l/bigfoot90/phpacto.svg)](https://packagist.org/packages/bigfoot90/phpacto)
[![Build Status](https://img.shields.io/travis/bigfoot90/phpacto.svg)](https://travis-ci.org/bigfoot90/phpacto)
[![CodeCov](https://img.shields.io/coveralls/github/bigfoot90/phpacto.svg)](https://codecov.io/github/bigfoot90/phpacto)
[![Scrutinizer Quality Score](https://img.shields.io/scrutinizer/g/bigfoot90/phpacto.svg)](https://scrutinizer-ci.com/g/bigfoot90/phpacto/)
[![Latest Stable Version](https://img.shields.io/packagist/v/bigfoot90/phpacto.svg)](https://packagist.org/packages/bigfoot90/phpacto)
[![Total Downloads](https://img.shields.io/packagist/dt/bigfoot90/phpacto.svg)](https://packagist.org/packages/bigfoot90/phpacto)

This is a work in progress ...
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -50,6 +50,6 @@
},
"bin": ["bin/phpacto"],
"archive": {
"exclude": ["!vendor/", "tests/", ".travis.yml"]
"exclude": ["tests/", "vendor/", "composer.lock", ".circleci/", ".travis.yml"]
}
}

0 comments on commit 26e77e8

Please sign in to comment.