Skip to content

Commit

Permalink
Try Travis on xenial workers
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Jul 10, 2019
1 parent 3b8c067 commit f3cf7b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: trusty
dist: xenial
sudo: required

language: go
Expand Down
6 changes: 3 additions & 3 deletions pgp/gnupg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ func (s *Gnupg2SignerSuite) SetUpTest(c *C) {
continue
}

args := []string{"--import", "--no-default-keyring"}
args := []string{"--import", "--no-default-keyring", "--batch"}

if item.suffix == "_passprhase" {
args = append(args, "--passphrase", "verysecret", "--no-tty", "--batch")
args = append(args, "--passphrase", "verysecret", "--no-tty")
if ver == GPG21xPlus {
args = append(args, "--pinentry-mode", "loopback")
}
Expand All @@ -190,7 +190,7 @@ func (s *Gnupg2SignerSuite) SetUpTest(c *C) {
// import public keys into gpg2
// we can't use pre-built keyrings as gpg 2.0.x and 2.1+ have different keyring formats
for _, suffix := range []string{"", "_passphrase"} {
output, err := exec.Command(gpg, "--no-default-keyring", "--keyring", "./keyrings/aptly2"+suffix+".gpg",
output, err := exec.Command(gpg, "--no-default-keyring", "--batch", "--keyring", "./keyrings/aptly2"+suffix+".gpg",
"--import", "keyrings/aptly2"+suffix+".pub.armor").CombinedOutput()
c.Log(string(output))
c.Check(err, IsNil)
Expand Down

0 comments on commit f3cf7b4

Please sign in to comment.