forked from Guake/guake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (47 loc) · 1.46 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
language: python
python:
- "3.5"
- "3.6"
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
- yes | sudo ./scripts/bootstrap-dev-debian.sh
- ./scripts/bootstrap-dev-pip.sh system
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
guake -h
rm -rf test-rtd
)
# for dev
- make dev
# check
- make check
- make build
- make test
deploy:
provider: pypi
user: Stibbons
distributions: sdist bdist_wheel
password:
secure: XNXxMzRr3b44DpjbH/yyVYfonS/PkDsE7VMm4Mv4WSQf2SDuwxa/KZTtoforSr6AbYef16d4ZU5EELlOIQ31n3I
eVCE+yrFoCh96yOW4x2wMEdJfV5D9bKa5CNxyzYiHF2FvLh69yuIyOwpv89WGp0m8aowuYxwiOEdkrdm/ZVg=
on:
tags: true
repo: Guake/guake
branch: master