Skip to content

Commit c194dba

Browse files
committed
Adding docs
1 parent 2fa95d8 commit c194dba

5 files changed

Lines changed: 425 additions & 0 deletions

File tree

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
sudo: required
22
env:
33
matrix:
4+
- BUILD_TYPE=docs
45
- OS_TYPE=centos OS_VERSION=6
56
- OS_TYPE=centos OS_VERSION=7
67
- OS_TYPE=centos OS_VERSION=6 XRD_CACHE="root://xrd-cache-1.t2.ucsd.edu"
@@ -17,6 +18,12 @@ env:
1718
- OS_TYPE=centos OS_VERSION=7 XRD_CACHE="root://stashcache.grid.uchicago.edu"
1819

1920

21+
language: python
22+
23+
before_script:
24+
- pip install mkdocs
25+
- pip install MarkdownHighlight
26+
2027
services:
2128
- docker
2229

@@ -30,4 +37,5 @@ before_install:
3037

3138
script:
3239
# Run tests in Container
40+
- if [ "$BUILD_TYPE" = "docs" ]; then bin/stashcp2/tests/build_docs.sh; fi
3341
- bin/stashcp2/tests/setup_tests.sh ${OS_VERSION}

bin/stashcp2/tests/build_docs.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
3+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
4+
5+
openssl aes-256-cbc -K $encrypted_e92dfea3fdc7_key -iv $encrypted_e92dfea3fdc7_iv -in deploy-key.enc -out deploy-key -d
6+
chmod 600 deploy_key
7+
eval `ssh-agent -s`
8+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then ssh-add deploy_key; fi
9+
git config user.name "Automatic Publish"
10+
git config user.email "djw8605@gmail.com"
11+
git remote add gh-token "git@github.com:opensciencegrid/StashCache.git"
12+
git fetch gh-token && git fetch gh-token gh-pages:gh-pages; fi
13+
echo "Pushing to github"; mkdocs gh-deploy -v --clean --remote-name gh-token; git push gh-token gh-pages
14+
15+
else
16+
17+
mkdocs build
18+
19+
fi
20+
21+

0 commit comments

Comments
 (0)