Skip to content

Commit a480cbb

Browse files
committed
Build dev builds
1 parent 4feaa19 commit a480cbb

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.travis.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,37 @@ install:
1010
- true
1111

1212
script:
13-
# Build server for various operating systems
1413
- go test ./...
14+
15+
# Build for various architectures
16+
- GOARCH=amd64 GOOS=windows make && mv dist/dots{,-windows-amd64.exe}
17+
- GOARCH=amd64 GOOS=darwin make && mv dist/dots{,-macos-amd64}
18+
- GOARCH=amd64 GOOS=linux make && mv dist/dots{,-linux-amd64}
19+
- GOARCH=arm64 GOOS=linux make && mv dist/dots{,-linux-arm64}
20+
21+
before_deploy:
22+
# Replace dev-build tag with latest release
23+
- export OWNER=${TRAVIS_REPO_SLUG%/*}
24+
- git remote add gh https://${OWNER}:${GITHUB_API_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
25+
- git tag -f dev-build
26+
- git push -f gh dev-build
27+
- git remote remove gh
28+
29+
deploy:
30+
- provider: releases
31+
api-key: $GITHUB_API_TOKEN
32+
name: Development Build
33+
body: Automatic development build of the master branch.
34+
file:
35+
- dist/dots-windows-amd64.exe
36+
- dist/dots-macos-amd64
37+
- dist/dots-linux-amd64
38+
prerelease: true
39+
overwrite: true
40+
skip_cleanup: true
41+
target_commitish: $TRAVIS_COMMIT
42+
on:
43+
tags: false
44+
45+
branches:
46+
only: [ go-rewrite ]

0 commit comments

Comments
 (0)