forked from gnocchixyz/gnocchi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (77 loc) · 2.99 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
dist: bionic
language: generic
sudo: required
services:
- docker
cache:
directories:
- ~/.cache/pip
env:
- TARGET: pep8
- TARGET: docs
- TARGET: docs-gnocchi-web
- TARGET: py36-mysql-ceph-upgrade-from-4.3
- TARGET: py36-postgresql-file-upgrade-from-4.3
- TARGET: py36-mysql-file
- TARGET: py36-mysql-swift
- TARGET: py36-mysql-s3
- TARGET: py36-postgresql-file
- TARGET: py36-postgresql-swift
- TARGET: py36-postgresql-s3
before_script:
# NOTE(sileht): We need to fetch all tags/branches for documentation.
# For the multiversioning, we change all remotes refs to point to
# the pull request checkout. So the "master" branch will be the PR sha and not
# real "master" branch. This ensures the doc build use the PR code for initial
# doc setup.
- if \[ "$TRAVIS_PULL_REQUEST" != "false" -o -n "$TRAVIS_TAG" \]; then
set -x;
case $TARGET in
docs*)
git config --get-all remote.origin.fetch;
git config --unset-all remote.origin.fetch;
git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/*;
git config --get-all remote.origin.fetch;
git fetch --unshallow --tags;
;;
esac ;
case $TARGET in
docs-gnocchi-web)
git branch -a | sed -n "/\/HEAD /d; /\/master$/d; s,remotes/origin/,,p;" | xargs -i git branch {} origin/{} ;
git branch -D master;
git checkout -b master;
git remote set-url origin file:///home/tester/src;
git ls-remote --heads --tags | grep heads;
;;
esac ;
set +x;
fi
install:
- if \[ "$TRAVIS_PULL_REQUEST" != "false" -o -n "$TRAVIS_TAG" \]; then
docker pull gnocchixyz/ci-tools:latest;
fi
script:
- if \[ "$TRAVIS_PULL_REQUEST" != "false" -o -n "$TRAVIS_TAG" \]; then
docker run -v ~/.cache/pip:/home/tester/.cache/pip -v $(pwd):/home/tester/src gnocchixyz/ci-tools:latest tox -e ${TARGET} ;
fi
notifications:
email: false
irc:
on_success: change
on_failure: always
skip_join: true
channels:
- "irc.freenode.org#gnocchi"
before_deploy:
- pip install --user --upgrade pip
- pip install --user --upgrade six
deploy:
provider: pypi
user: jd
password:
secure: c+Ccx3SHCWepiy0PUxDJ7XO9r3aNYnHjkzxF5c/kjV8QaCJayAJEgXJnBKhvjroqwgn7JPUgpD6QdSWdB4FqjbZYQ3I3oHOO1YL0vYYa8wHG5HuMsMp4J8qvzgs3QNQDECPI1mXsPevn3VMfGszUN+6BQrHB3FbZsTtOmE+Kmgok5NCT+obsfEhVea/UOD0XFUkVW9VJhPjQ2ytvYvFIc46/73GQf2Er/5DCa/4GGDEBSD++bDJgp3kQj438xslCAFeZWDwGsa+cTc43PI0Y0+E144ySVY7QyVbZ1B66a1BGWVrXJuM+gW/eIBCMN1FJXmD7CDdPa22azKI8dfMF7qaH3Oiv3cVovPWpubOvhTUHUFwG8+W7Fx+zUKktCWiLer/fZvEd3W8tcgby2kNOdcUfKfDB2ImZJ+P694/OJ4jJ8T5TQerruNoP2OstzcBMon77Ry0XawXR15SZd4JhbqhSi+h7XV6EYmct1UN4zoysA7fx/cWHcBxdnm2G6R0gzmOiiGUd74ptU8lZ3IlEP6EZckK/OZOdy1I8EQeUe7aiTooXZDAn07iPkDZliYRr2e36ij/xjtWCe1AjCksn/xdKfHOKJv5UVob495DU2GuNObe01ewXzexcnldjfp9Sb8SVEFuhHx6IvH5OC+vAq+BVYu2jwvMcVfXi3VSOkB4=
skip_existing: true
on:
all_branches: true
tags: true
distributions: "sdist bdist_wheel"