Skip to content

Commit

Permalink
Export travis job number
Browse files Browse the repository at this point in the history
- This is used in the remote docs script to preventi
  failed builds from pushing docs.
- Also added exe wrapper to the scp failed_file command
  • Loading branch information
bmorcos committed Apr 28, 2020
1 parent c86e522 commit 37c3369
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .templates/remote-script.sh.template
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

{% block remote_script %}
{{ super() }}
export TRAVIS_JOB_NUMBER="$TRAVIS_JOB_NUMBER"
export TRAVIS_BRANCH="$TRAVIS_BRANCH"
export TRAVIS_TAG="$TRAVIS_TAG"
export TEST_ARGS="$TEST_ARGS"
Expand All @@ -30,7 +31,7 @@
{% block after_script %}
{% if remote_script == "docs" %}
REMOTE_FAILED_FILE="tmp/nengo-fpga-$TRAVIS_JOB_NUMBER/{{ pkg }}/$TRAVIS_JOB_NUMBER.failed"
ssh -q {{ host }} [[ -e "$REMOTE_FAILED_FILE" ]] && scp {{ host }}:"$REMOTE_FAILED_FILE" .
ssh -q {{ host }} [[ -e "$REMOTE_FAILED_FILE" ]] && exe scp {{ host }}:"$REMOTE_FAILED_FILE" .
exe rsync -azh "{{ host }}:./tmp/{{ pkg }}-$TRAVIS_JOB_NUMBER/{{ pkg }}-docs" ..
{% endif %}
exe bash .ci/{{ remote_script }}.sh after_script
Expand Down
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ Release History
(`#45 <https://github.com/nengo/nengo-fpga/pull/45>`__)
- Start using intersphinx, rename docs using '-'.
(`#48 <https://github.com/nengo/nengo-fpga/pull/48>`__)
- Add TRAVIS_JOB_NUMBER to exported variables in remote-docs.sh.
(`#63 <https://github.com/nengo/nengo-fpga/pull/63>`__)


0.2.1 (September 17, 2019)
Expand Down

0 comments on commit 37c3369

Please # to comment.