-
Notifications
You must be signed in to change notification settings - Fork 44
/
.travis.yml
41 lines (34 loc) · 1.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: php
sudo: false
php:
- 5.5
- 5.6
- hhvm
before_script:
- composer self-update
- bash -c 'if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;'
- composer install --prefer-dist --no-interaction
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then pear install PHP_CodeSniffer; phpenv rehash; fi;'
script:
- bash -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then phpcs --standard=PSR2 src/ tests/; fi;'
- vendor/bin/phpunit --coverage-text
addons:
apt:
packages:
- p7zip-full
before_deploy:
- bash build.sh
- 7z a -tzip shariff-backend-php.zip ./build/*
- 7z a -ttar -so shariff-backend-php.tar ./build/* | 7z a -si shariff-backend-php.tar.gz
deploy:
provider: releases
api_key:
secure: jbEPfD2xopoDQBGTJsrGvwhvb5MZislQowvHtsJ7f+B9seS9FGVc8Yq2kcqGX+8I8DyI5RCu3UlorGVnOQrxT9yxHVEK8PGjqOSCgRZw8p3jZmoNzrN7Qi+5YjCXxrAEKbT0nFYvis1DJqbuLOOU9+DBP6JWKmYvrtCjNSIxRIY=
file:
- shariff-backend-php.zip
- shariff-backend-php.tar.gz
skip_cleanup: true
on:
repo: heiseonline/shariff-backend-php
tags: true
php: 5.5