diff options
author | Thomas Buckley-Houston <tom@tombh.co.uk> | 2018-11-14 23:15:23 +0900 |
---|---|---|
committer | Thomas Buckley-Houston <tom@tombh.co.uk> | 2019-06-24 09:12:20 +0300 |
commit | 714cad86156873e93899b0424017dbc90ed92e63 (patch) | |
tree | b1332671f7283b7aa8a1f9a988aec672daa1a9a5 | |
parent | 7a622b230b630560d31a044d5cefa035ce8f35fd (diff) |
Travis: upload logs to text host
This is because Travis' logs had 2 problems.
1. it doesn't capture the entire log output
2. it doesn't show logs when there's a timeout
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | interfacer/src/browsh/ui.go | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index aac01f5..69c6a46 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,8 +40,8 @@ script: - cd $REPO_ROOT/interfacer && go test test/tty/*.go -v -ginkgo.slowSpecThreshold=30 -ginkgo.flakeAttempts=3 - cd $REPO_ROOT/interfacer && go test test/http-server/*.go -v -ginkgo.slowSpecThreshold=30 -ginkgo.flakeAttempts=3 after_failure: - - cat $REPO_ROOT/interfacer/test/tty/debug.log - - cat $REPO_ROOT/interfacer/test/http-server/debug.log + - cat $REPO_ROOT/interfacer/test/tty/debug.log | curl -F 'f:1=<-' ix.io + - cat $REPO_ROOT/interfacer/test/http-server/debug.log | curl -F 'f:1=<-' ix.io after_success: - $REPO_ROOT/contrib/release_if_new_version.sh diff --git a/interfacer/src/browsh/ui.go b/interfacer/src/browsh/ui.go index a9e6304..43317e8 100644 --- a/interfacer/src/browsh/ui.go +++ b/interfacer/src/browsh/ui.go @@ -93,7 +93,9 @@ func urlBarFocusToggle() { } } -func UrlBarFocus(on bool) { +// Set the focus of the URL bar. Also used in tests to ensure the URL bar is in fact focussed as +// toggling doesn't guarantee that you will gain focus. +func URLBarFocus(on bool) { if !on { activeInputBox = nil urlInputBox.isActive = false |