forked from AbuseIO/AbuseIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (45 loc) · 1.44 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
language: php
branches:
except:
- AbuseIO-3.0
os:
- linux
php:
- 5.5.9
- 7.0
env:
- DB=mysql
before_script:
- cp .env.travis .env
- echo ${TRAVIS_PHP_VERSION:0:5}
- if [[ ${TRAVIS_PHP_VERSION:0:5} == "5.5.9" ]]; then echo 'yes' | pecl install mailparse-2.1.6; fi
- if [[ ${TRAVIS_PHP_VERSION:0:5} == "7.0" ]]; then echo 'yes' | pecl install mailparse; fi
- mysql -e 'CREATE DATABASE `abuseio`;'
- composer self-update
- composer install --dev --prefer-source --no-interaction
- chmod -R 770 storage
- php artisan migrate:install --no-interaction -vvv
- chmod +x extra/notifier-samples/runall
- wget -O bootstrap/app.php https://raw.githubusercontent.com/laravel/laravel/5.1/bootstrap/app.php
- sed -i 's/App\\/AbuseIO\\/g' bootstrap/app.php
script:
- php artisan migrate --env=testing --no-interaction -vvv
- php artisan db:seed --env=testing --no-interaction -vvv
- extra/notifier-samples/runall-noqueue
- php artisan note:create 1 Abusedesk 'Test Note' true false
- vendor/bin/phpunit
- php artisan migrate:rollback --env=testing --no-interaction -vvv
after_script:
- ls -laR storage/mailarchive
- cat storage/logs/*
notifications:
email:
irc:
channels:
- "irc.freenode.net#abuseio"
template:
- "%{repository}#%{build_number} (%{branch} - %{commit}) %{author}: %{message} - %{build_url}"
slack: abuseio:nSyRBPexhu9t3qOAqRoXgFnM
on_failure: always
skip_join: true