-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (52 loc) · 1.42 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
language: php
dist: trusty
sudo: false
cache:
directories:
- vendor
- $HOME/.composer/cache
php:
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
notifications:
email: false
irc:
channels:
- "irc.iiens.net#Erebot"
on_success: change
on_failure: always
before_script:
- rm composer.lock
- composer self-update -n
- composer install -n
script:
- vendor/bin/phpunit --coverage-clover clover.xml
- vendor/bin/phpcs
after_success:
- composer require --dev satooshi/php-coveralls
- travis_retry vendor/bin/php-coveralls -n -v
jobs:
include:
- stage: deploy
name: "Documentation"
script:
- git clone --depth=1 --branch=build https://github.com/Erebot/erebot.github.io.git docs/trigger
- "export TRIGGER_DOC_BUILD=$( (git show --pretty=format: --name-only $TRAVIS_COMMIT | grep -q '^docs/' && echo 1) || echo 0 )"
- if [ -n "$TRAVIS_TAG" ]; then export TRIGGER_DOC_BUILD=1; fi
- if [ $TRAVIS_PULL_REQUEST != "false" ]; then export TRIGGER_DOC_BUILD=0; fi
deploy:
provider: pages
local-dir: docs/trigger
repo: Erebot/erebot.github.io
target-branch: trigger
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
allow-empty-commit: true
verbose: true
on:
all_branches: true
condition: '$TRIGGER_DOC_BUILD -eq 1'