This commit fixes the potential issue where a failed website build
results in rclone deleting the contents of the bucket. This is
accomplished by making 2 changes. The first is to set errexit in the
deploy_cos.sh bash script, which results in any intermediate failure in
the script exiting instead of continue with the execution of the script.
The second is to make the travis script rely on && instead of multiple
script lines. Travis doesn't exit when an earlier script line fails and
instead continues like bash without errexit and fails after all lines
are executed. To work around this all the deploy commands are run in a
single line using && so that it will exit after the website build fails.
Changes have been made on where the documentation are published in IBM
COS. This commit updates the encrypted credentials and the bucket name
so that future doc builds publish to the proper place.
We were previously commiting the rendered output of sphinx builds from
the documentation repo into the website repo on each change made to the
Qiskit/qiskit repo. There is no reason to do this, as it just balloons
the size of the repository making it hard to work with and needlessly
increases the amount of times we have to copy easily generatable
static artifacts around. Unfortunately the damage to this repo is already
done because the large copies of all the binary static artifacts are now
in the git history forever. But, to address this problem in the future
the docs jobs in Qiskit/qiskit are changing to just upload directly
cloud object store where the site is hosted now, which both makes
updating documentation and the website faster, reduces complexity of the
deployment system, and makes everything more reliable. To ensure that
the qiskit.org deploys no longer try to overwrite the deployed
documentation this commit removes the local copy of the documentation
and updates the rclone command in the deploy script to not touch the
documentation content.
This commit adds the qiskit api schemas (mainly qobj and backend
information) to the qiskit.org deploy script. This is just a stop gap
to start uploading. A follow up patch here will be to just add this
upload step to the qiskit-terra repo directly since the object store
means we don't have to (and shouldn't) centralize all the artifacts
hosted on the qiskit.org domain in a single massive git repo.
Fixes#48