File tree 6 files changed +104
-13
lines changed
6 files changed +104
-13
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ before_install: skip
21
21
stages :
22
22
- verify
23
23
- test
24
+ - name : deploy latest docs
25
+ if : (branch = master OR branch =~ ^infra/$) AND type = push
24
26
- name : deploy
25
27
if : tag is PRESENT
26
28
44
46
- source ./.travis/lib-util.sh
45
47
- util::docker-run $DISTRO ./.travis/verify.sh
46
48
49
+ - stage : deploy latest docs
50
+ script : skip
51
+ env :
52
+ - DISTRO=fedora:rawhide
53
+ - PYTHON="3"
54
+ - secure : L5SpEj5+no20PWwC9Y/XNhAfmUvYiuykwSMa/YyqvUuBjdizzpZcHr7Ego5nMdM1TniTxj4pSTM+GbM0FHCzNmAINSRh9g/D3hheRqlRBacqR0XwC9ZZRvkKvtzwnLh4vYWiauq4AoDeR5U6tkEcay6LjE57iMQcLjcKYBc+Eos=
55
+ before_deploy :
56
+ - source ./.travis/lib-util.sh
57
+ - util::docker-run $DISTRO ./.travis/before-docs-deploy.sh
58
+
59
+ deploy :
60
+ - provider : script
61
+ script : .travis/docs-deploy.sh travis_docs_build/html latest pythongssapi/python-gssapi
62
+ skip_cleanup : true
63
+ on :
64
+ all_branches : true
65
+
66
+
47
67
- stage : deploy
48
68
script : skip
49
- env : DISTRO=fedora:rawhide PYTHON="3"
69
+ env :
70
+ - DISTRO=fedora:rawhide
71
+ - PYTHON="3"
72
+ - secure : L5SpEj5+no20PWwC9Y/XNhAfmUvYiuykwSMa/YyqvUuBjdizzpZcHr7Ego5nMdM1TniTxj4pSTM+GbM0FHCzNmAINSRh9g/D3hheRqlRBacqR0XwC9ZZRvkKvtzwnLh4vYWiauq4AoDeR5U6tkEcay6LjE57iMQcLjcKYBc+Eos=
50
73
before_deploy :
51
74
- source ./.travis/lib-util.sh
52
75
- util::docker-run $DISTRO ./.travis/before-deploy.sh
55
78
deploy :
56
79
- provider : releases
57
80
api_key :
58
- secure : e8kjZEY28gWySD5FsnG9CMgeKgFS12gB/xm1Ck1jEgIhYT01VwxvBMHIU7SV/92+aeBao5clN4/qN4P035hD8TShHUMzV7rsmXmqcaCwi3J5sh2hyy4e1PfYAshuX7bxvkfqJSvSonLz0AKHW4pj17yMrTXpWiEioGg0fSLtTHo =
81
+ secure : fAaSSSjd/nUrIpINBjAT590pGF2nGq3I8ee6aGq6IAFpXoa/9eeN5eyOrE4MYucWCwYcH28c7510n35vuZQQor+UZIDo6l0K5M64/NZE1cZ43zOMjw3yHlrsJG+ohPS7YvjqD8GaFlLhF6ZvWvrPmWeijvs8qAT1eL7QoEG0xBk =
59
82
file_glob : true
60
83
file :
61
84
- tag_build/*
74
97
all_branches : true
75
98
# NB(directxman12): this is a hack. Check ./.travis/before-deploy.sh for an explanation.
76
99
distributions : " check"
100
+
101
+ - provider : script
102
+ script : .travis/docs-deploy.sh travis_docs_build/html stable pythongssapi/python-gssapi
103
+ skip_cleanup : true
104
+ on :
105
+ all_branches : true
106
+
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
2
3
3
source ./.travis/lib-setup.sh
4
+ source ./.travis/lib-deploy.sh
4
5
5
6
# build again since I can't figure out how to get travis to recognize the old
6
7
# build in the new container. The other alternative (besides actually solving
@@ -13,15 +14,7 @@ setup::activate
13
14
yum -y install tar coreutils git
14
15
15
16
# build the docs
16
- # the first run is for the docs build, so don't clean up
17
- pip install -r docs-requirements.txt
18
-
19
- # install dependencies so that sphinx doesn't have issues
20
- # (this actually just installs the whole package in dev mode)
21
- pip install -e .
22
-
23
- # place in a non-standard location so that they don't get cleaned up
24
- python setup.py build_sphinx --build-dir travis_docs_build
17
+ deploy::build-docs
25
18
26
19
# NB(directxman12): this is a *terrible* hack, but basically,
27
20
# dpl (the Travis deployer) uses `twine` instead of `setup.py sdist upload`.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -ex
2
+
3
+ source ./.travis/lib-setup.sh
4
+ source ./.travis/lib-deploy.sh
5
+
6
+ # build again since I can't figure out how to get travis to recognize the old
7
+ # build in the new container. The other alternative (besides actually solving
8
+ # the issue) is to run the docs build and tarball generation every time.
9
+
10
+ ./.travis/build.sh
11
+
12
+ setup::activate
13
+
14
+ deploy::build-docs
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -ex
2
+
3
+ # NB (very important): BE VERY CAREFUL WITH `set -x` FOR THIS FILE.
4
+ # The GitHub token is sensative information, and should never
5
+ # be displayed on in the clear.
6
+
7
+ source_directory=${1?need <source dir> <target dir> <target repo> [<target branch, default: gh-pages>]}
8
+ target_directory=${2?need <source dir> <target dir> <target repo> [<target branch, default: gh-pages>]}
9
+ target_repo=${3?need <source dir> <target dir> <target repo> [<target branch, default: gh-pages>]}
10
+ target_branch=${4:- gh-pages}
11
+
12
+ desc=$( git describe --tags)
13
+
14
+ scratch_dir=$( mktemp -d)
15
+
16
+ set +x # IMPORTANT
17
+ echo " cloning https://<elided>@github.com/${target_repo} .git#${target_branch} in to ${scratch_dir} /docs..."
18
+ git clone https://${GITHUB_TOKEN} @github.com/${target_repo} .git ${scratch_dir} /docs -b ${target_branch}
19
+ set -x
20
+
21
+ mkdir -p ${scratch_dir} /docs/${target_directory}
22
+ cp -r ${source_directory} /. ${scratch_dir} /docs/${target_directory}
23
+ echo $desc > ${scratch_dir} /docs/${target_directory} /.from
24
+ pushd $scratch_dir /docs
25
+ git config user.email
" [email protected] "
26
+ git config user.name " Deployment Bot (from Travis CI)"
27
+ git add ${target_directory}
28
+ git commit -m " Update ${target_directory} docs in based on ${desc} "
29
+
30
+ set +x # IMPORTANT
31
+ echo " pushing to https://<elided>@github.com/${target_repo} .git#${target_branch} "
32
+ git push --quiet --force-with-lease origin ${target_branch} :${target_branch}
33
+ set -x
34
+
35
+ popd
36
+ rm -rf ${scratch_dir}
37
+ echo " done!"
Original file line number Diff line number Diff line change
1
+ deploy::build-docs () {
2
+ # the first run is for the docs build, so don't clean up
3
+ pip install -r docs-requirements.txt
4
+
5
+ # install dependencies so that sphinx doesn't have issues
6
+ # (this actually just installs the whole package in dev mode)
7
+ pip install -e .
8
+
9
+ # place in a non-standard location so that they don't get cleaned up
10
+ python setup.py build_sphinx --build-dir travis_docs_build
11
+
12
+ echo " travis_docs_build"
13
+ }
Original file line number Diff line number Diff line change @@ -21,8 +21,12 @@ Python-GSSAPI provides both low-level and high level wrappers around the GSSAPI
21
21
C libraries. While it focuses on the Kerberos mechanism, it should also be
22
22
useable with other GSSAPI mechanisms.
23
23
24
- Documentation for the latest released version can be found at
25
- `https://pythonhosted.org/gssapi <https://pythonhosted.org/gssapi>`_.
24
+ Documentation for the latest released version (including pre-release versions)
25
+ can be found at
26
+ `https://pythongssapi.github.io/python-gssapi/stable <https://pythongssapi.github.io/python-gssapi/stable>`_.
27
+
28
+ Documentation for the latest commit on master can be found at
29
+ `https://pythongssapi.github.io/python-gssapi/latest <https://pythongssapi.github.io/python-gssapi/latest>`_.
26
30
27
31
Requirements
28
32
============
You can’t perform that action at this time.
0 commit comments