Skip to content

Commit 898dbba

Browse files
committed
Merge branch 'pull_59'
2 parents 8def1fa + eea96ec commit 898dbba

12 files changed

Lines changed: 655 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 OS_VERSION=7
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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
ssh-add deploy_key
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
13+
echo "Pushing to github"
14+
mkdocs gh-deploy -v --clean --remote-name gh-token
15+
git push gh-token gh-pages
16+
17+
else
18+
19+
mkdocs build
20+
21+
fi
22+
23+

0 commit comments

Comments
 (0)