diff --git a/.travis.yml b/.travis.yml index a5a3945..1109406 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ # License: Mozilla Public License, v2.0 language: go -go: 1.10.x +go: 1.11.x os: - linux @@ -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 diff --git a/appveyor.yml b/appveyor.yml index 50de396..0e4c603 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,7 +8,7 @@ clone_folder: c:\gopath\src\github.com\nielsAD\gowarcraft3 artifacts: - path: bin\* - - path: release_* + - path: gowarcraft3_* environment: GOPATH: c:\gopath @@ -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 @@ -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