Skip to content

Commit 7ba2157

Browse files
authored
travis-ci: Simplified
- Replaced double by single quotes, because `!` needs otherwise escaping - Fixed the ` Cannot stat: No such file or directory` warning in travis-ci during the build process
1 parent 159a8fc commit 7ba2157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ before_deploy:
2323
# they failed to build.
2424
- go get github.com/mitchellh/gox
2525
- mkdir releases
26-
- gox -osarch="!netbsd/arm !openbsd/386 !openbsd/amd64 !netbsd/386 !netbsd/amd64" -output="releases/{{.Dir}}_`git describe --tags --abbrev=0`_{{.OS}}_{{.Arch}}/{{.Dir}}"
26+
- gox -osarch='!netbsd/arm !openbsd/386 !openbsd/amd64 !netbsd/386 !netbsd/amd64' -output="releases/{{.Dir}}_`git describe --tags --abbrev=0`_{{.OS}}_{{.Arch}}/{{.Dir}}"
2727
# Below tar command will log an error because either ...-hetzner or
2828
# ...-hetzner.exe are missing. The process continues, though and the
2929
# created tarballs are fine.
30-
- find releases -maxdepth 1 -mindepth 1 -type d -exec tar -cvzf {}.tar.gz -C {} docker-machine-driver-hetzner docker-machine-driver-hetzner.exe \;
30+
- find releases -maxdepth 2 -mindepth 2 -type f -exec bash -c 'tar -cvzf "$(dirname {}).tar.gz" -C "$(dirname {})" $(basename {})' \;
3131

3232
deploy:
3333
# See https://docs.travis-ci.com/user/deployment/releases/

0 commit comments

Comments
 (0)