Skip to content

Commit

Permalink
travis: use focal (20.04)
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jun 1, 2021
1 parent efa343b commit 26792a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# See appveyor.yml for windows build.
sudo: required
language: go
dist: trusty
dist: focal
services:
- xvfb # see https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-xvfb-to-run-tests-that-require-a-gui
osx_image: xcode10.1
os:
- linux
Expand All @@ -19,7 +21,6 @@
- pass
before_script:
- make deps
- "export DISPLAY=:99.0"
- "export GO111MODULE=off"
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$HOSTTYPE" != "ppc64le" ]]; then sh ci/before_script_linux.sh; fi
- make validate
Expand Down
7 changes: 4 additions & 3 deletions ci/before_script_linux.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
set -ex

sh -e /etc/init.d/xvfb start
sleep 3 # give xvfb some time to start
# see https://github.com/keybase/keybase-issues/issues/2798
GPG_TTY=$(tty)
export GPG_TTY

# init key for pass
gpg --batch --gen-key <<-EOF
gpg --batch --pinentry-mode=loopback --passphrase '' --generate-key <<-EOF
%echo Generating a standard key
Key-Type: DSA
Key-Length: 1024
Expand Down

0 comments on commit 26792a9

Please sign in to comment.