forked from Guake/guake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (61 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
language: python
dist: xenial
python:
- "3.5"
- "3.6"
env:
global:
- PIPENV_VENV_IN_PROJECT=1
- PIPENV_IGNORE_VIRTUALENVS=1
install:
- |
# Force unshallow and checkout the current branch
# https://docs.openstack.org/reno/latest/user/usage.html#within-travis-ci
# git log --pretty=format:"%h %s" --graph
git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
git fetch --unshallow --tags
if [[ $(git rev-parse --abbrev-ref HEAD) == "master" ]]; then
echo "reattaching HEAD on master"
git symbolic-ref --short HEAD || git checkout -b ${TRAVIS_BRANCH}-test $TRAVIS_BRANCH
fi
git log --pretty=format:"%h %s" --graph
- sudo apt update -q
- yes | sudo ./scripts/bootstrap-dev-debian.sh
- ./scripts/bootstrap-dev-pip.sh system
- sudo apt install --no-install-recommends -y xvfb gir1.2-gtk-3.0 python3-gi python3-gi-cairo gir1.2-wnck-3.0 gobject-introspection libgirepository1.0-dev
before_script:
- export DISPLAY=:99.0
script:
# Test no system dependencies prevent readthedocs build
- |
(
set -e
mkdir test-rtd
virtualenv test-rtd
. ./test-rtd/bin/activate
pip install -r requirements-dev.txt
rm -rf test-rtd
)
# for dev
- make dev-travis
- pipenv run pip install pycairo pygobject
# check
- make check
- make build
- make test-travis
# prepare for deployment
- make generate-paths
deploy:
provider: pypi
user: stibbons
skip_cleanup: true # keep build artifacts for paths.py !
distributions: sdist bdist_wheel
password:
secure: >
MIbsyar7H1epBcp+TpSJ3APYUnIiQAB0M9cLEXFzqwJU1bjPev8fYNbfCQB0bA/TSHXaQjfR
F3sTFFYxpVOxjRHPIWctBTTuKOETAd3XR96YtVRGLpglxLvI+9U5YPuGWC4SbKuAE8L8pqH9
O9pnKqZCaarGxOm+GjEZrfzfm1g=
on:
tags: true
repo: Guake/guake
condition: $TRAVIS_PYTHON_VERSION = 3.6