diff --git a/.travis.yml b/.travis.yml index f54d8b6..837e694 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,18 @@ +env: + global: + secure: L/XoO6PXazMX+mHN8e+csS0hduu0o6IAE5Z9ypa1hN8HZJ0airpGqmD7wGoyhY4d/p3ujf+uyrLvOz/CGuEhSjhp9BDC8Y73h+LQEGsqDHQEV2w9d18jg2HU9WKORWBoAHXf78Us47s74uJsH8+s6gD+1pqVpIBVjuyn+C5+mVQVLSRhT3tbwYpGmA2EY7s9RihJICI/qNGx1xAlx/kF+hd2Z+RbBJLhyyuEDWPbhFCMhJ/9pTynDA1qhW8cJHTA3TYO+506+2GJKUroFlg3vo5iMJ33pw6p40oGQlZq+p/FbtxkgdfQnw//XJLzfFaFBhi4sbMLSMiD5FqazhARjH8Bd5UHZg4ZumqYqIMYOPa5RqEWWiJ6cvSRfxEGajnkQDU45F/8lefYl6QfBdnHwDQwoBB2S+nozf1ARW4xZ8Q2BLgrT4zd9C+eKDU6XvtxN9I55GaD0gOUpTeXJCpde1oEtRhPqQWkOn6ij5px7peRf+XAzvGyFiIusKEUUUbUzbGsDcMfY969ckxFVhINQnmGkQuFvdfScYcPX7JHOVdYK3TGNlme4NGrAJVmnnPr8EeNYXM1rg2tFwOV2G8m4XdsYPx4jUuJVpIsbtfzXGb8oZwBxjPJPia3quLrG89QulWJSIlHLD52yf15AxUFm0PN79eahkJf+VfqwQgxuyo= +install: +- pip install -r requirements.txt +- pip install -r requirements-dev.txt +- pip install -e . language: python +notifications: + webhooks: + on_start: never + urls: + - https://webhooks.gitter.im/e/7bd6d69bcfa59bddf1e2 python: - - "2.7" -install: - - pip install -r requirements.txt - - pip install -r requirements-dev.txt - - pip install -e . +- '2.7' script: - - make check -notifications: - webhooks: - urls: - - https://webhooks.gitter.im/e/7bd6d69bcfa59bddf1e2 - on_start: never +- make check +- source docs/docdeploy.sh diff --git a/devkey.enc b/devkey.enc new file mode 100644 index 0000000..81c5d18 Binary files /dev/null and b/devkey.enc differ diff --git a/docs/dev/api.rst b/docs/dev/api.rst index ac5cecc..c5588c2 100644 --- a/docs/dev/api.rst +++ b/docs/dev/api.rst @@ -7,5 +7,5 @@ see how poorly commented RCS is. .. toctree:: :maxdepth: 2 - rcs - parsers + run + services diff --git a/docs/dev/parsers.rst b/docs/dev/parsers.rst deleted file mode 100644 index 7f4ed31..0000000 --- a/docs/dev/parsers.rst +++ /dev/null @@ -1,22 +0,0 @@ -Parsers -======= - -The `regparse` package. Contains parsers for ESRI feature services and WMSes. - -.. automodule:: regparse.esri_feature - :members: - :undoc-members: - :private-members: - :special-members: - -.. automodule:: regparse.wms - :members: - :undoc-members: - :private-members: - :special-members: - -.. automodule:: regparse.sigcheck - :members: - :undoc-members: - :private-members: - :special-members: diff --git a/docs/dev/services.rst b/docs/dev/services.rst new file mode 100644 index 0000000..f7a6e58 --- /dev/null +++ b/docs/dev/services.rst @@ -0,0 +1,46 @@ +Services +======== + +The `services` package. + +.. automodule:: serivces.registration + :members: + :undoc-members: + :private-members: + :special-members: + +.. automodule:: services.retrieval + :members: + :undoc-members: + :private-members: + :special-members: + +.. automodule:: services.update + :members: + :undoc-members: + :private-members: + :special-members: + +.. automodule:: services.upgrade + :members: + :undoc-members: + :private-members: + :special-members: + +.. automodule:: services.utils + :members: + :undoc-members: + :private-members: + :special-members: + +.. automodule:: services.v1 + :members: + :undoc-members: + :private-members: + :special-members: + +.. automodule:: services.v2 + :members: + :undoc-members: + :private-members: + :special-members: \ No newline at end of file diff --git a/docs/docdeploy.sh b/docs/docdeploy.sh new file mode 100644 index 0000000..bd43a06 --- /dev/null +++ b/docs/docdeploy.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +set -e + +if [ "$TRAVIS_REPO_SLUG" == "fgpv-vpgf/rcs" ] && [ -n "$TRAVIS_TAG" ]; then + openssl aes-256-cbc -k "$PW" -out ~/.ssh/id_rsa -in devkey.enc -d + echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config + chmod 600 ~/.ssh/id_rsa + eval `ssh-agent -s` + ssh-add ~/.ssh/id_rsa + + cd docs + make clean + make html + git clone --depth=1 git@github.com:fgpv-vpgf/rcs.git -b gh-pages ghdocs + mkdir -p ghdocs/$TRAVIS_TAG + rsync -av --delete _build/html/ ghdocs/$TRAVIS_TAG/ + bash make_doc_index.sh ghdocs/ > ghdocs/index.html + + cd ghdocs + git add $TRAVIS_TAG + git add index.html + git config user.email "glitch.chatbot@gmail.com" + git config user.name "Glitch Bot" + git commit -m "Docs for rcs@$TRAVIS_TAG" + git push + cd .. + rm -rf ghdocs +fi diff --git a/docs/make_doc_index.sh b/docs/make_doc_index.sh new file mode 100644 index 0000000..6ea1a08 --- /dev/null +++ b/docs/make_doc_index.sh @@ -0,0 +1,28 @@ +HEADER=" + + +
+