Skip to content

Commit

Permalink
ci: Update travis/appveyor to go 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsAD committed Dec 21, 2018
1 parent 297aa00 commit 1292019
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License: Mozilla Public License, v2.0

language: go
go: 1.10.x
go: 1.11.x

os:
- linux
Expand All @@ -30,14 +30,22 @@ script:
- md5sum ./bin/*

before_deploy:
- tar -czf release_$TRAVIS_OS_NAME.tar.gz bin LICENSE
- >
echo -e
"Author: Niels A.D.
\nProject: gowarcraft3 (https://github.com/nielsAD/gowarcraft3)
\nPlatform: $TRAVIS_OS_NAME
\nRelease: $TRAVIS_TAG ($TRAVIS_COMMIT)
\nDate: `date --utc`"
> VERSION
- tar -czf gowarcraft3_${TRAVIS_TAG}_${TRAVIS_OS_NAME}.tar.gz bin LICENSE VERSION

deploy:
provider: releases
api_key:
secure: YBMQ2YzGBe+o+hJ0RYV/ZssnukUkuhetKWbPsTcPWq9UjK9+AVQB4ZNef13gz5l+uSRVuK84dN7BZ9YoVNBIVS0vxl4vXmJoR9IZ5Zj649ohHiExjhR8bZyjpSvb6XSVSZOJkoRbFvZmg2FzbOqZRCj6nrDhCeg2JUBk20xOmrYi3NysVpnSBPAAB9UDwqCrD8nZnoco2ZNDOeBlP0i/37FiojyM6mtVV1bN9qMxsJakhnTmCCVzSOFRgmHJteagjPjSxIPKNjV/xHThFmnKvWGOmNcjOBBluDbp63lz8ml34xYOBIh9tIt9Bkzc41PbK+OJIZ4CeZLqL6fV47y3lP+VT86am4FbJy/XCpUoUccFtO28GzTLaJpgD3EN3qy5YpjR39rsSLHaK+5kmuKzo0zm8JNYLPVRKtNmlwKf91QEsb+bu4vrB9y7qE3FqbqBsQu8TzYgF9iLDJQ5j6JzXDkoYeoGw9CTYSYhB/ycN/eH6f37zuNTCkf8n5IEatmcEGcXInizDHgf+AS3cV47uAC9fwEAk2HmvR2UdgHZ1mMa/wM+V0r8FbIs0CsvksCcbRLd/Fea/fk4SMMhCq7vxObFtAketE62tXHGKhpykGYRHRlRna4+BTSF2sxuFBfyKnnZ3OdjpRJANIOdeqWftlsNm75Q3lCksydir3MfGQU=
file_glob: true
file: release_*
file: gowarcraft3_*
skip_cleanup: true
on:
tags: true
20 changes: 16 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ clone_folder: c:\gopath\src\github.com\nielsAD\gowarcraft3

artifacts:
- path: bin\*
- path: release_*
- path: gowarcraft3_*

environment:
GOPATH: c:\gopath
Expand All @@ -20,7 +20,10 @@ environment:
MSYSTEM: MINGW64
MSYS2_ARCH: x86_64

stack: go 1.10
stack: go 1.11

init:
- git config --global core.autocrlf true

install:
# Initialize environment
Expand Down Expand Up @@ -48,12 +51,21 @@ test_script:

after_test:
- md5sum ./bin/*
- 7z a release_windows_%MSYS2_ARCH%.zip bin LICENSE
- >
bash -lc "echo -e
\"Author: Niels A.D.
\r\nProject: gowarcraft3 (https://github.com/nielsAD/gowarcraft3)
\r\nPlatform: Windows ($MSYS2_ARCH)
\r\nRelease: $APPVEYOR_REPO_TAG_NAME ($APPVEYOR_REPO_COMMIT)
\r\nDate: `date --utc`\""
> VERSION.txt
- mv LICENSE LICENSE.txt
- 7z a gowarcraft3_%APPVEYOR_REPO_TAG_NAME%_windows_%MSYS2_ARCH%.zip bin LICENSE.txt VERSION.txt

deploy:
provider: GitHub
auth_token:
secure: wDwXLoUDnL32TSi+DpnwB4o+8LitFI6eIoyOqjm6//LiGMBMpkLiu/PaIZdCw4G/
artifact: /release_.*/
artifact: /gowarcraft3_.*/
on:
appveyor_repo_tag: true

0 comments on commit 1292019

Please sign in to comment.