Skip to content

Commit 8912526

Browse files
committed
Initial commit
1 parent 8e33453 commit 8912526

File tree

1,391 files changed

+208565
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,391 files changed

+208565
-2
lines changed

.circleci/config.yml

+140
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
version: 2
2+
jobs:
3+
4+
# FIXME: Work out how to use YAML features or “Orbs” to reduce the
5+
# redundancy in this configuration. The ‘testbuild’ and ‘deploybuild’
6+
# jobs are essentially the same. They only differ in the gradle target.
7+
8+
testbuild:
9+
machine:
10+
image: ubuntu-1604:202004-01
11+
12+
working_directory: ~/repo
13+
14+
environment:
15+
JVM_OPTS: -Xmx8g
16+
TERM: dumb
17+
18+
steps:
19+
- add_ssh_keys:
20+
fingerprints:
21+
- "3b:70:31:86:74:31:25:e6:18:aa:ec:1b:01:d9:2d:76"
22+
23+
- run: python3 -m pip install pygments==2.6.1 click
24+
25+
- checkout
26+
27+
- restore_cache:
28+
keys:
29+
- v1-dependencies-{{ checksum "build.gradle" }}
30+
# fallback to using the latest cache if no exact match is found
31+
- v1-dependencies-
32+
33+
- run: openssl aes-256-cbc -d -k $SAXPASSPHRASE -in tools/saxon.enc | tar zxf -
34+
35+
- run: ./gradlew dependencies
36+
37+
- save_cache:
38+
paths:
39+
- ~/.gradle
40+
key: v1-dependencies-{{ checksum "build.gradle" }}
41+
42+
- run: ./gradlew website
43+
44+
- run: rm -rf lib
45+
46+
- persist_to_workspace:
47+
root: build
48+
paths:
49+
- distributions
50+
- website
51+
52+
- store_artifacts:
53+
path: build/website
54+
55+
deploybuild:
56+
machine:
57+
image: ubuntu-1604:202004-01
58+
59+
working_directory: ~/repo
60+
61+
environment:
62+
JVM_OPTS: -Xmx8g
63+
TERM: dumb
64+
65+
steps:
66+
- add_ssh_keys:
67+
fingerprints:
68+
- "3b:70:31:86:74:31:25:e6:18:aa:ec:1b:01:d9:2d:76"
69+
70+
- run: python3 -m pip install pygments==2.6.1 click
71+
72+
- checkout
73+
74+
- restore_cache:
75+
keys:
76+
- v1-dependencies-{{ checksum "build.gradle" }}
77+
# fallback to using the latest cache if no exact match is found
78+
- v1-dependencies-
79+
80+
- run: openssl aes-256-cbc -d -k $SAXPASSPHRASE -in tools/saxon.enc | tar zxf -
81+
82+
- run: ./gradlew dependencies
83+
84+
- save_cache:
85+
paths:
86+
- ~/.gradle
87+
key: v1-dependencies-{{ checksum "build.gradle" }}
88+
89+
- run: ./gradlew dist
90+
91+
- run: rm -rf lib
92+
93+
- persist_to_workspace:
94+
root: build
95+
paths:
96+
- distributions
97+
- website
98+
99+
- store_artifacts:
100+
path: build/website
101+
102+
- run: ./.circleci/publish-website.sh
103+
104+
publish-github-release:
105+
docker:
106+
- image: cibuilds/github:0.10
107+
steps:
108+
- attach_workspace:
109+
at: ./artifacts
110+
- run: ls -lR
111+
- run:
112+
name: "Publish Release on GitHub"
113+
command: |
114+
VERSION=${CIRCLE_TAG}
115+
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${VERSION} ./artifacts/distributions/
116+
117+
workflows:
118+
version: 2
119+
check:
120+
jobs:
121+
- testbuild:
122+
filters:
123+
branches:
124+
ignore: gh-pages
125+
deploy:
126+
jobs:
127+
- deploybuild:
128+
filters:
129+
branches:
130+
ignore: /.*/
131+
tags:
132+
only: /.+/
133+
- publish-github-release:
134+
requires:
135+
- deploybuild
136+
filters:
137+
branches:
138+
ignore: /.*/
139+
tags:
140+
only: /.+/

.circleci/publish-website.sh

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
if [[ -v CIRCLE_TAG ]]; then
4+
echo "Deploying website updates for $CIRCLE_TAG"
5+
else
6+
echo "Website updates are not published for untagged builds"
7+
exit
8+
fi
9+
10+
if [ `git branch -r | grep "origin/gh-pages" | wc -l` = 0 ]; then
11+
echo "No gh-pages branch for publication"
12+
exit
13+
fi
14+
15+
if [ `set | grep GIT_EMAIL | wc -l` = 0 -o `set | grep GIT_USER | wc -l` = 0 ]; then
16+
echo "No identity configured with GIT_USER/GIT_EMAIL"
17+
exit
18+
fi
19+
20+
git config --global user.email $GIT_EMAIL
21+
git config --global user.name $GIT_USER
22+
23+
# Remember the SHA of the current build.
24+
SHA=$(git rev-parse --verify HEAD)
25+
26+
# Save the website files
27+
cd build/website
28+
tar cf - . | gzip > /tmp/website.$$.tar.gz
29+
cd ../..
30+
31+
# Switch to the gh-pages branch
32+
git checkout --track origin/gh-pages
33+
git fetch origin
34+
git rebase origin/gh-pages
35+
36+
# Unpack the website files
37+
tar zxf /tmp/website.$$.tar.gz
38+
rm /tmp/website.$$.tar.gz
39+
40+
# Push the changes back to the repo
41+
git add .
42+
git commit -m "Deploy gh-pages for ${CIRCLE_PROJECT_USERNAME}: ${SHA}"
43+
git push -q origin HEAD

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.gradle/
2+
/.idea/
3+
/build/
4+
/lib/

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Norman Walsh
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.org

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
* DocBook xslTNG Stylesheets
1+
#+TITLE: DocBook xsltNG README
22

3-
Coming soon…
3+
Build status:
4+
[[https://circleci.com/gh/ndw/docbook-xsltNG.svg?style=svg&circle-token=fff3d12b38fab0fbce5b9f431f80d1b44f1b5553]]
5+
6+
Hello. You’ve found this repository during it’s “soft opening.” It’s
7+
public and it should all work, but I haven’t made any announcements
8+
about it.
9+
10+
It’s not a secret, but [[https://www.merriam-webster.com/dictionary/keep+(something)+under+one's+hat][keep it under your hat]], ok?

0 commit comments

Comments
 (0)