-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
58 lines (51 loc) · 1.58 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
# vim: set ts=2 sts=2 sw=2 expandtab :
dist: focal
language: shell
os: linux
services:
- docker
addons:
apt:
packages:
- python3-github
before_install:
- curl -Ls -o docker-build https://github.com/mate-desktop/mate-dev-scripts/raw/master/travis/docker-build
- chmod +x docker-build
install:
- ./docker-build --name ${DISTRO} --config .build.yml --install
script:
- ./docker-build --name ${DISTRO} --verbose --config .build.yml --build scripts
notifications:
irc:
if: branch = master AND
repo = "mate-desktop/mate-wiki"
channels:
- "irc.libera.chat#mate-dev"
template:
- "[%{repository_name}] %{author}: %{commit_subject}"
- "[%{branch}] %{commit} %{message} %{build_url}"
on_success: never
on_failure: always
deploy:
#preview website
- provider: pages
edge: true
token: $GITHUB_TOKEN
keep_history: false
repo: mate-desktop/mate-wiki-preview
committer_from_gh: true
target_branch: gh-pages
strategy: git
on:
all_branches: true
condition: '$TRAVIS_BRANCH != master'
after_success:
- 'if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" && "$TRAVIS_PULL_REQUEST" != "false" ]]; then
URL="https://wiki.mate-desktop.dev";
COMMENT="Wiki preview deployed.";
curl -H "Authorization: token $GITHUB_TOKEN" -X POST
-d "{\"state\": \"success\", \"description\": \"$COMMENT\", \"context\":\"wiki preview\", \"target_url\": \"$URL\"}"
https://api.github.com/repos/${TRAVIS_REPO_SLUG}/statuses/${TRAVIS_PULL_REQUEST_SHA};
fi'
env:
- DISTRO="archlinux/base"