forked from 418sec/boxbilling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (50 loc) · 1.36 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# http://docs.travis-ci.com/user/build-configuration/
language: php
dist: trusty
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
matrix:
allow_failures:
- php: 7.0
- php: 7.1
- php: 7.2
sudo: false
install:
- ant
- composer self-update
- composer require --dev phpunit/phpunit ^6.0 php-coveralls/php-coveralls ^2.1
- composer install --dev
before_script:
- mysql --user=root -e "CREATE USER 'foo'@'localhost' IDENTIFIED BY 'foo';"
- mysql --user=root -e "GRANT ALL PRIVILEGES ON *.* TO 'foo'@'localhost'"
- mysql -e 'create database IF NOT EXISTS boxbilling'
- mysql -D boxbilling < src/install/structure.sql
- mysql -D boxbilling < src/install/content.sql
- mv ./src/bb-config-sample.php ./src/bb-config.php
script:
- ./vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml
after_script:
- php vendor/bin/coveralls -v
notifications:
email: false
slack: boxbilling:vsdKszFU9Pm308ye5rNSpr8n
before_deploy:
- npm install -g grunt-cli
- npm install
- grunt
- ant release
deploy:
provider: releases
api-key:
secure: tVzZ+3U0ndBGvoUpFqA6ikg6fDKnPgMoNqK1pvTdEp0xmrFtjMP/fuc8+awObhj89iEC+MyzfsOP57CZbHR/UjmUSHPQew+BvTwxYmTUzgUeyUrYsTEI7WJgB7tsL35aRgrpxk102tlSmlX7EonufUT0svPOAQ1p4NgZRm3GI3A=
file: ./build/distribution/BoxBilling.zip
skip_cleanup: true
on:
tags: true
all_branches: true
php: 5.6