34 lines
1.4 KiB
YAML
34 lines
1.4 KiB
YAML
language: go
|
|
go:
|
|
- 1.12.x
|
|
|
|
os:
|
|
- linux
|
|
- windows
|
|
|
|
dist: trusty
|
|
sudo: false
|
|
install: true
|
|
|
|
script:
|
|
- env GO111MODULE=on GOOS=linux GOARCH=amd64 go build -o bin/toolheim_linux .
|
|
- env GO111MOBULE=on GOOS=windows GOARCH=amd64 go build -o bin/toolheim_windows.exe .
|
|
- env GO111MODULE=on GOOS=darwin GOARCH=amd64 go build -o bin/toolheim_osx .
|
|
|
|
before_deploy:
|
|
- git config --local user.name "Aaron Fischer"
|
|
- git config --local user.email "mail@aaron-fischer.net"
|
|
- export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)}
|
|
- git tag $TRAVIS_TAG
|
|
|
|
deploy:
|
|
provider: releases
|
|
skip_cleanup: true
|
|
api_key:
|
|
secure: Yc14JpZUZvnS2M9K07AMBt2vUSJBgMDUH/ykGUPjK+RAtKEv5KDqzVnsDMSSLxFv+hfCI9Hr1GNcTqBnQi66kORdpwTC5jTbz+rRGtopDWsciHqpwczSRUwcc9WiG3NjJSTDQejfTlIdgjdcwijLYNy/wvQMF8FqfRzyJYSev3IXShVyTTV71Dzz0UmXgnsU2O8/7ocCk+sWexQISMsHUA968014MQ5CWtBSJ/H35yFdTSa04ajjI6/EzhKwVvUNGmIaglKVzTg3LCXvVXyP3HqxVNHfMndNwKImNiZekjnfYKcWHH9d0LS0o7trX9Xve0WWgp9uGQQuRYElHhNTpDWfZBIFpLfLbEAIB3PLzxD0tR71mb0+TyJq8C/H8BdwZhUXGrBcdjVYAlyJ86CnCo81uRdQZU5FoQEc6WSqH1aLuW+ySYiVij68b1puhMwbVKvJB8WW2URkuPPBhZ/2scJzeUMVm5VhAYd/bZ8Qhf1svTn3kviIrUVWl7KcFPxUuUiR+C6tSbnksMmFWs2o+BMZMKDCfe+1jJyB9MF575qe5Ev7ju2BdMJsdX57dAdxwAzKxE9xi2yGOK22eGVRdZRkI27wtojN5LaDrytIVsj0Pw+KU0/vSW1PhBcWJVkWIGrrA4C/icY/hdK30y6t4bQrMTFr4NxYOJrvVfYHKeM=
|
|
file:
|
|
- bin/toolheim_windows.exe
|
|
- bin/toolheim_linux
|
|
- bin/toolheim_osx
|
|
on:
|
|
repo: f0086/toolheim
|