File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11sudo : required
22env :
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"
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+
2027services :
2128 - docker
2229
@@ -30,4 +37,5 @@ before_install:
3037
3138script :
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}
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments