forked from mantisbt/mantisbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (73 loc) · 1.97 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# -----------------------------------------------------------------------------
# MantisBT Travis-CI build configuration file
# -----------------------------------------------------------------------------
language: php
os: linux
dist: bionic
# -----------------------------------------------------------------------------
# Environment setup and test scripts execution
#
services:
- postgresql
- mysql
install:
- composer install
before_script:
# Ignore E_DEPRECATED notices when running PHP 8.1 builds
- if php -r "exit( (int)! version_compare( '$TRAVIS_PHP_VERSION', '8.1', '>=' ) );"; then echo 'error_reporting = E_ALL & ~E_DEPRECATED' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/mantis_php81.ini; fi
- ./build/travis_before_script.sh
script:
- ./build/travis_script.sh
# -----------------------------------------------------------------------------
# What to build, and on which platforms
#
branches:
only:
- master
- /master-[0-9.]+/
php:
- 8.1
- 8.0
- 7.4
- 7.3
- 7.2
- 7.1
env:
- DB=mysql
- DB=pgsql
jobs:
include:
# Use 'xenial' build environment for legacy PHP versions
- php: 7.0
dist: xenial
env: DB=mysql
- php: 7.0
dist: xenial
env: DB=pgsql
# Add a specific build for Documentation
- name: Documentation
env: DOCBOOK=1
# Using Ruby as it's preinstalled and we don't need PHP to build docs
language: ruby
addons:
apt:
packages:
- publican
allow_failures: []
# -----------------------------------------------------------------------------
# Notifications
#
notifications:
email:
on_success: change
on_failure: always
irc:
on_success: change
on_failure: always
channels:
- "chat.freenode.net#mantisbt"
skip_join: true
template:
- "Build #%{build_number}: %{repository} %{branch} (%{commit}) %{author} - %{message}"
- "Build details: %{build_url}"
- "Code Changes: %{compare_url}"