blob: 52392163d67ebc38a45bf80ace1089b3446a33b3 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
|
language: php
matrix:
include:
- php: "5.5"
- php: "5.6"
addons:
sauce_connect: true
hosts:
- cops-travis
- php: "7.0"
- php: "hhvm"
allow_failures:
- php: "hhvm"
- php: "5.5"
before_script:
- composer selfupdate
- composer global require "fxp/composer-asset-plugin:~1.1"
- 'if [ "${TRAVIS_PHP_VERSION}" = "5.5" ]; then rm composer.lock ; fi'
- composer install
- npm install jshint
- jshint --version
script:
- vendor/bin/phpunit
- jshint --verbose --show-non-errors util.js
- php test/coverage-checker.php clover.xml 45
after_success:
- chmod +x test/prepareSauceTest.sh
- test/prepareSauceTest.sh
env:
global:
- SAUCE_USERNAME=seblucas
- secure: VVxocvmz6WYr3tZSTA42M/LUhaHoBWw5onh85hnquoMaxspd3tDCyfQIowTTmEXikRh2T0CkTH7X3dhVwRTd/Ha9isja1qDo9Lc2flGCoWICF7WFZuom084+d+O+EWx4WZMAw4Lz4w6a5xflpPKnzNs9B0+de0BdTlQ5qSXVrcA=
sudo: false
before_deploy:
- composer install phing
- phing
- export RELEASE_FILE=$(ls ./cops-*.zip)
deploy:
provider: releases
api_key:
secure: kNFtDsBbAGRgAYD7KHFMORsItciahDz88AjhpQbtFAN1Nrz4EIQA+0jpS7+5NYHsnb4LMcuH/BubopNlpoumy+IrUZ3+64D+NcK50YmK0sPhM1aAtEIDlXnivIvqFemzW2lCv9vvJjbmJFI1zcH877aBODJB81N6hA5zbSbIszA=
skip_cleanup: true
file:
- "${RELEASE_FILE}"
on:
tags: true
repo: seblucas/cops
php: 5.6
|