Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

CI: Set up Travis #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
language: php

matrix:
include:
- php: 7.1
- php: 7.2
- php: 7.2
env:
- ENABLE_DEVTOOLS=true
- php: nightly
allow_failures:
- php: nightly
fast_finish: true

os:
- linux

notifications:
irc: "chat.freenode.net#hoaproject"

sudo: false

env:
global:
- secure: "AAAAB3NzaC1yc2EAAAADAQABAAAAgQCxKrtTeNpY5CbooNy+9/zGaVFNHzVNHmnW2EM7FvimRgCohHHUX7l8MW/0wVSRcvq/WT6PcHBJ73U5CPdBQHHsNBQDuHWTkhLFYNX+E2NkfZRRdIHi76zZv9u6xtTUuosVbGh5cxDDw0owtSgO+xjzzGvZQSlhChy+Z0kcA9pNqQ=="

cache:
directories:
- vendor/

before_script:
- export PATH="$PATH:$HOME/.composer/vendor/bin"
- if [[ ! $ENABLE_XDEBUG ]]; then
phpenv config-rm xdebug.ini || echo "ext-xdebug is not available, cannot remove it.";
fi

script:
- composer install
- vendor/bin/hoa test:run
- if [[ $ENABLE_DEVTOOLS ]]; then
composer global require friendsofphp/php-cs-fixer;
vendor/bin/hoa devtools:cs --diff --dry-run .;
fi
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
---

<p align="center">
<a href="https://travis-ci.org/hoaproject/math"><img src="https://img.shields.io/travis/hoaproject/math/master.svg" alt="Build status" /></a>
<a href="https://coveralls.io/github/hoaproject/math?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/math/master.svg" alt="Code coverage" /></a>
<a href="https://travis-ci.org/hoaproject/Math"><img src="https://img.shields.io/travis/hoaproject/Math/master.svg" alt="Build status" /></a>
<a href="https://coveralls.io/github/hoaproject/Math?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/Math/master.svg" alt="Code coverage" /></a>
<a href="https://packagist.org/packages/hoa/math"><img src="https://img.shields.io/packagist/dt/hoa/math.svg" alt="Packagist" /></a>
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/math.svg" alt="License" /></a>
</p>
Expand Down