forked from YetiForceCompany/YetiForceCRM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (58 loc) · 1.77 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
63
64
65
66
67
68
sudo: required
dist: trusty
language: php
php:
- 7.2
- 7.1
- 7.0
- nightly
matrix:
fast_finish: true
allow_failures:
- php: hhvm
- php: nightly
- php: 7.2
branches:
only:
- developer
services:
- mysql
mysql:
database: yetiforce
username: root
encoding: utf8
before_script:
- sudo chmod -R 777 tests/setup/
- ./tests/setup/before_script.sh
- ./tests/setup/apache.sh
- ./tests/setup/selenium.sh
script:
- cd tests
- /usr/local/bin/phpunit --debug --verbose
after_script:
- sudo cat /var/log/apache2/error.log
- sudo cat /var/log/apache2/access.log
- sudo cat /var/log/apache2/other_vhosts_access.log
- cat ../tests/records.log
- cat ../cache/logs/errors.log
- cat ../cache/logs/request.log
- cat ../cache/logs/phpError.log
- cat ../cache/logs/system.log
- cat ../cache/logs/Importer.log
- cat ../cache/logs/webserviceDebug.log
- cat ../cache/logs/webserviceErrors.log
- php ocular code-coverage:upload --format=php-clover coverage.xml
- bash <(curl -s https://codecov.io/bash)
- sudo ls -all ../screenshots
- |
if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.1" ]]; then
zip -r coverageHtml.zip coverageHtml/ > /dev/null
sudo apt-get install ncftp > /dev/null
ncftpput -R -v -u $AFU -p $AFP $AFA / coverageHtml.zip > /dev/null
ncftpput -R -v -u $AFU -p $AFP $AFA / ../screenshots > /dev/null
ncftpput -R -v -u $AFU -p $AFP $AFA / ../cache/logs/errors.log > /dev/null
ncftpput -R -v -u $AFU -p $AFP $AFA / ../cache/logs/system.log > /dev/null
ncftpput -R -v -u $AFU -p $AFP $AFA / ../cache/logs/phpError.log > /dev/null
ncftpput -R -v -u $AFU -p $AFP $AFA / ../cache/logs/webserviceDebug.log > /dev/null
ncftpput -R -v -u $AFU -p $AFP $AFA / ../cache/logs/webserviceErrors.log > /dev/null
fi