forked from AbuseIO/AbuseIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (45 loc) · 1.31 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
language: php
branches:
except:
- AbuseIO-3.0
os:
- linux
php:
- 7.4.0
env:
- DB=mysql
services:
- mysql
before_script:
- cp .env.travis .env
- echo ${TRAVIS_PHP_VERSION:0:5}
- echo 'yes' | pecl install mailparse;
- 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
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
- wget -O bootstrap/app.php https://raw.githubusercontent.com/laravel/laravel/master/bootstrap/app.php
- sed -i 's/App\\/AbuseIO\\/g' bootstrap/app.php
after_script:
- ls -laR storage/mailarchive
- cat storage/logs/*
notifications:
email:
- dev@abuse.io
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