forked from exaile/exaile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (53 loc) · 1.21 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
services:
- docker
language: python
env:
- IMGTAG=debian10-python3
- IMGTAG=fedora31-python3
- IMGTAG=ubuntu18.04-python3
- IMGTAG=ubuntu19.10-python3
before_install:
- docker pull exaile/exaile-testimg:${IMGTAG}
script:
- docker run --rm -it -e HOME=/home -v $(pwd):/app -w /app exaile/exaile-testimg:${IMGTAG} make BUILDDIR=/tmp test test_compile check-doc
jobs:
include:
- stage: format-check
language: python
python:
- "3.6"
install:
- pip install black
script:
- make check_format
- stage: deploy
language: python
python:
- "3.6"
virtualenv:
system_site_packages: true
if: tag IS present
install:
- sudo apt-get install -y python-gi
script:
- make DIST_VERSION=$TRAVIS_TAG dist
deploy:
provider: releases
draft: true
api_key: $EXAILEBOT_OAUTH_KEY
file_glob: true
file: dist/*
skip_cleanup: true
on:
branch: automation
tags: true
notifications:
irc:
if: fork = false
channels:
- "chat.freenode.net#exaile"
use_notice: false
skip_join: false
on_success: change
template:
- "%{repository_name} %{branch} | %{build_url} | %{compare_url} | %{message}"