diff --git a/.github/deploy_key.scitools-docs.enc b/.github/deploy_key.scitools-docs.enc new file mode 100644 index 0000000000..165a7c1970 --- /dev/null +++ b/.github/deploy_key.scitools-docs.enc @@ -0,0 +1 @@ +gAAAAABZSMeGIlHxHu4oCV_h8shbCRf1qJYoLO9Z0q9uKRDTlytoigzlvfxhN-9WMjc3Js1f1Zg55PfEpTOpL82p6QHF-gqW0k0qGjanO3lnQzM6EzIu3KyJPrVrL-O6edwoPMYKqwsNO3VQHNuEspsFKY0TbjnTPHc45SPU5LjEGX4c_SADSDcLDJm2rbrU2eVkT-gFHy_-ZzK0Di83WlDc79YzIkVe5BAn5PbWv3O9BROR4fJzecbjmWRT_rp1cqI_gaUpVcwTdRK3II9YnazBtW4h2WbCeTcySLD7N4o9K0P71SR6gG_XFbpML3Haf5IUdRi0qPBuvJ_4YVnnuJo6mhiIOJfUEcNj_bbLOYVzPmKyQMHvrPf_lK5JhdX6MUvqluhqHuc0i_z_j1O2y32lB7b1iiY6eE_BsNlXJHlOX1GiXkX0nZLI48p-D22jya44WshWSnVcoalcCDkdbvdFbpOscwXDR3nB-PCOmRUF_d1BlMbp1if-VP0yt3tJ_5yyCrqSRWwFusaibQTF6yoImetl7Am95hh2FjFDNkalHqtarnUv86w-26v1ukcTIjJ0iHzNbCK1m0VMkvE6uDeqRgIZnVKON5cesmM3YbulRrHpaOiSly_sMhLhfg5jTxAuOa319AQGoHEOcRLRUYdw2TQkDEiHGiUh_U4-nC7GTGDGcXyeBIa4ciuC2Qi0QXf9qyEGoIRcU8BP34LDNdtovJoZOBDzhr5Ajnu7yA3GB3TD_kiZrgm6agFuu7a51OMfjezhwGzUJ4X-empPctwm9woOJmPCTFqCvxB2VwVV0L6yngsTooyAHCi5st_AG-p5FIT3VZGx7EgCd68ze9XlRoACoe9XOdSFklbaSMGRbJlvKCPAA0zj4__PfIhlD8Cxwwjq_VXlSr_QxygIGZJlhkT46P9TroolgdipaBp1aQ3_PKHfgw5Y9ZqBKCZF5DOJejq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Qnf2_0WS1sWTmNMZZNMfOSqmTCRVwcYvg4TDGOA-vZARbZW1M7npVMldV_SbvgcEZD6InY9c40eheRqS0YD2W2HEZIiNeLRw0y5WBcYuJIpXhI3ViTXx-frJnv0Mo9uwmuLbJmWFcn6RdIVcU68_oPZZlZD4Vm7SjikbuZKF1BF3lXamTTDIBcWiDLwuNDv2lUkURDCWa5WJsfUCfTAJ6PTe8= \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index ee4ad4387f..bf618a27af 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,11 +12,16 @@ python: sudo: false env: - - TEST_TARGET=default - - TEST_TARGET=default TEST_MINIMAL=true - - TEST_TARGET=coding - - TEST_TARGET=example - - TEST_TARGET=doctest + matrix: + - TEST_TARGET=default + - TEST_TARGET=default TEST_MINIMAL=true + - TEST_TARGET=coding + - TEST_TARGET=example + - TEST_TARGET=doctest + + global: + # The decryption key for the encrypted .github/deploy_key.scitools-docs.enc. + - secure: "N9/qBUT5CqfC7KQBDy5mIWZcGNuUJk3e/qmKJpotWYV+zwOI4GghJsRce6nFnlRiwl65l5oBEcvf3+sBvUfbZqh7U0MdHpw2tHhr2FSCmMB3bkvARZblh9M37f4da9G9VmRkqnyBM5G5TImXtoq4dusvNWKvLW0qETciaipq7ws=" git: depth: 10000 @@ -117,15 +122,30 @@ script: # spuriously. The echo-backtick workaround gets around this error, # which should be investigated further in the future. - if [[ $TEST_TARGET == 'doctest' ]]; then - cd $(pwd)/docs/iris; + cd docs/iris; echo `make clean html`; make doctest; + cd ../../; fi + + # Split the organisation out of the slug. See https://stackoverflow.com/a/5257398/741316 for description. + - ORG=(${TRAVIS_REPO_SLUG//\// }) + + # When we merge a change, and we are running in python 3, push some docs. + - if [[ $TEST_TARGET == 'doctest' && ${TRAVIS_EVENT_TYPE} == 'push' && ${TRAVIS_PYTHON_VERSION} == 3* && ${ORG} == "SciTools" ]]; then + pip install doctr; + doctr deploy --deploy-repo SciTools-docs/iris --built-docs docs/iris/build/html + --key-path .github/deploy_key.scitools-docs.enc + --no-require-master + ${TRAVIS_BRANCH:-${TRAVIS_TAG}}; + fi + # An extra call to check "whatsnew" contributions are valid, because the # Iris test for it needs a *developer* install to be able to find the docs. - if [[ $TEST_TARGET == 'doctest' ]]; then - cd ./src/whatsnew; + cd docs/iris/src/whatsnew; python aggregate_directory.py --checkonly; + cd ../../../../; fi - if [[ $TEST_TARGET == 'coding' ]]; then python setup.py test --coding-tests;