forked from Guake/guake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (50 loc) · 1.56 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
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
rm -rf test-rtd
)
# for dev
- make dev-travis
# check
- make check
- make build
- make test
# 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: >
ARo04J13A2+CGAqvIoKsypctOIQZI8e07to8OGtrhC7gVv92Fkw0peHpn7t0DFODFAjPhFZIGsNAvy3bST
sB2UQ85b+fCdcsltFSBHKknvixXOSfE0LbBEzHpGKYvUci0Y2cYWzBVZuj7gR76YWWIGK9560EnXML2eNtTJ4cVuQ=
on:
tags: true
repo: Guake/guake
branch: master