Skip to content

Commit

Permalink
Cleanup travis config (#1389)
Browse files Browse the repository at this point in the history
RELEASE_NOTES=n/a

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
  • Loading branch information
dominikschulz authored May 26, 2020
1 parent bdc9bc5 commit 4754c8f
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 51 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ jobs:
include:
- os: windows
env: SLOW_TEST_FACTOR=100 BUILDFLAGS='' GOPASS_OUTPUT=gopass.exe
script:
- make travis-windows
- os: osx
env: SLOW_TEST_FACTOR=100
script:
- make travis-osx
- os: linux
script:
- make travis
- make test-integration
- make install-completion

before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install git gnupg2 clang-format-3.9; fi
Expand All @@ -26,10 +34,5 @@ before_install:
go:
- '1.14.x'

script:
- ./travis_helper.sh travis
- make test-integration
- make install-completion

after_success:
- bash <(curl -s https://codecov.io/bash) -f coverage-all.out
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ all: build completion
build: $(GOPASS_OUTPUT)
completion: $(BASH_COMPLETION_OUTPUT) $(FISH_COMPLETION_OUTPUT) $(ZSH_COMPLETION_OUTPUT)
travis: sysinfo crosscompile build install fulltest codequality completion full
travis-osx: sysinfo build install fulltest completion full
travis-windows: sysinfo build install fulltest-nocover completion full
travis-osx: sysinfo build install test completion full
travis-windows: sysinfo build install test completion

sysinfo:
@echo ">> SYSTEM INFORMATION"
Expand Down Expand Up @@ -127,7 +127,7 @@ crosscompile:

full:
@echo -n ">> COMPILE linux/amd64 xc"
$(GO) build -o $(GOPASS_OUTPUT)-linux-amd64-full -tags "xc"
$(GO) build -o $(GOPASS_OUTPUT)-full -tags "xc"

%.completion: $(GOPASS_OUTPUT)
@printf ">> $* completion, output = $@"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="logo.png" height="250" alt="gopass Gopher by Vincent Leinweber, remixed from the Renée French original Gopher" title="gopass Gopher by Vincent Leinweber, remixed from the Renée French original Gopher" />
<img src="docs/logo.png" height="250" alt="gopass Gopher by Vincent Leinweber, remixed from the Renée French original Gopher" title="gopass Gopher by Vincent Leinweber, remixed from the Renée French original Gopher" />
</p>

# gopass
Expand Down
29 changes: 0 additions & 29 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,6 @@ func getCommands(ctx context.Context, action *ap.Action, app *cli.App) []*cli.Co
},
}},
},
{
Name: "otp",
Usage: "Generate time- or hmac-based tokens",
Aliases: []string{"totp", "hotp"},
Hidden: true,
Description: "" +
"Tries to parse an OTP URL (otpauth://). URL can be TOTP or HOTP. " +
"The URL can be provided on its own line or on a key value line with a key named 'totp'.",
Before: action.Initialized,
Action: action.OTP,
BashComplete: action.Complete,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "clip",
Aliases: []string{"c"},
Usage: "Copy the time-based token into the clipboard",
},
&cli.StringFlag{
Name: "qr",
Aliases: []string{"q"},
Usage: "Write QR code to FILE",
},
&cli.BoolFlag{
Name: "password",
Aliases: []string{"o"},
Usage: "Only display the token",
},
},
},
}
cmds = append(cmds, action.GetCommands()...)
cmds = append(cmds, xc.GetCommands()...)
Expand Down
4 changes: 0 additions & 4 deletions commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ func testCommands(t *testing.T, c *cli.Context, commands []*cli.Command, prefix
if cmd.Name == "update" {
continue
}
if cmd.Name == "configure" && prefix == ".jsonapi" {
// running jsonapi configure will overwrite the chrome manifest
continue
}
if len(cmd.Subcommands) > 0 {
testCommands(t, c, cmd.Subcommands, prefix+"."+cmd.Name)
}
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
29 changes: 29 additions & 0 deletions internal/action/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,35 @@ func (s *Action) GetCommands() []*cli.Command {
},
},
},
{
Name: "otp",
Usage: "Generate time- or hmac-based tokens",
Aliases: []string{"totp", "hotp"},
Hidden: true,
Description: "" +
"Tries to parse an OTP URL (otpauth://). URL can be TOTP or HOTP. " +
"The URL can be provided on its own line or on a key value line with a key named 'totp'.",
Before: s.Initialized,
Action: s.OTP,
BashComplete: s.Complete,
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "clip",
Aliases: []string{"c"},
Usage: "Copy the time-based token into the clipboard",
},
&cli.StringFlag{
Name: "qr",
Aliases: []string{"q"},
Usage: "Write QR code to FILE",
},
&cli.BoolFlag{
Name: "password",
Aliases: []string{"o"},
Usage: "Only display the token",
},
},
},
{
Name: "recipients",
Usage: "Edit recipient permissions",
Expand Down
9 changes: 0 additions & 9 deletions travis_helper.sh

This file was deleted.

0 comments on commit 4754c8f

Please sign in to comment.