forked from vanilla/vanilla
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
114 lines (111 loc) · 3.23 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Configure the build.
jobs:
fast_finish: true
include:
# PHP 7.2 Job. This should always run.
- name: PHP 7.2
language: php
php: 7.2
addons:
apt:
packages:
- nginx
- realpath
hosts:
- vanilla.test
before_script:
- phpenv config-rm xdebug.ini # Remove xdebug for better performance.
- composer self-update
- composer install --optimize-autoloader
- tests/travis/setup.sh
cache:
directories:
- $HOME/.composer/cache/files
script:
- tests/travis/main.sh
- ls -lah ./conf
- cat /tmp/error.log
- cat /tmp/access.log
# PHP 7.1 Job. This only runs in the daily cron jobs.
- name: PHP 7.1
language: php
php: 7.1
if: type = cron
addons:
apt:
packages:
- nginx
- realpath
hosts:
- vanilla.test
before_script:
- phpenv config-rm xdebug.ini # Remove xdebug for better performance.
- composer self-update
- composer install --optimize-autoloader
- tests/travis/setup.sh
cache:
directories:
- $HOME/.composer/cache/files
script:
- tests/travis/main.sh
- ls -lah ./conf
- cat /tmp/error.log
- cat /tmp/access.log
# PHP 7.1 Job. This only runs in the daily cron jobs.
- name: PHP 7.0
language: php
php: 7.0
if: type = cron
addons:
apt:
packages:
- nginx
- realpath
hosts:
- vanilla.test
before_script:
- phpenv config-rm xdebug.ini # Remove xdebug for better performance.
- composer self-update
- composer install --optimize-autoloader
- tests/travis/setup.sh
cache:
directories:
- $HOME/.composer/cache/files
script:
- tests/travis/main.sh
- ls -lah ./conf
- cat /tmp/error.log
- cat /tmp/access.log
# Frontend JS Job
- name: JS Build / Test
language: node_js
node_js: lts/*
addons:
chrome: stable
before_script:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.12.3 # Ensure a consistent yarn version
- export PATH=$HOME/.yarn/bin:$PATH
- yarn install --pure-lockfile
cache:
directories:
- $TRAVIS_BUILD_DIR/node_modules
- $TRAVIS_BUILD_DIR/plugins/rich-editor/node_modules
yarn: true
script:
- yarn audit
- yarn build
- yarn test
- yarn check-types
# No additional system dependencies to install. Skip the install step.
install: true
env:
- VANILLA_BUILD_DISABLE_AUTO_BUILD=true
# Send status update notifications to a HipChat room.
notifications:
hipchat:
format: html
on_success: change
rooms:
- secure: "SsKmSAZFynBz4ZKm5NPyuXvNjIMyxpNMXsgfXVImG8xjQHdXjEpZAiyckK8E2lXBBypv59Oex6wsS0RvyxpI/mwQ9dTQ9ayurQxwH3V5Q/+pRbtXJOkP+DSIsHhRb9D4xa5nPbh4N48+QZvUFiH2ety9/gev4mtMkLv3lC0vgpc="
template:
- '%{repository_slug} build <a href="%{build_url}">#%{build_number}</a> (%{branch} - <a href="%{compare_url}">%{commit}</a> by %{author}): %{message}'