From 2c61ff3c5832261f5f2e165d4803c074d26894ee Mon Sep 17 00:00:00 2001 From: l3uddz Date: Sat, 15 Feb 2020 13:14:33 +0000 Subject: [PATCH] add appveyor --- appveyor.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 appveyor.yml diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..e6bf3dba --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,53 @@ +version: 1.0.{build} + +image: + - Ubuntu1804 + - macOS + +platform: x64 + +branches: + only: + - master + - develop + +deploy: + - provider: GitHub + auth_token: + secure: japCKJyRSrHvPJV0hqZZGcRM9ZSR9GsTVh8SCCwbqiyuKTyB3OCcRMc6ICztczfV + artifact: mediarr + force_update: true + on: + branch: master + APPVEYOR_REPO_TAG: true + +# no need for caching as it does not appear to work right now +#cache: +# - vendor -> go.mod, appveyor.yml + +artifacts: + - path: dist/**/*.tar.tgz + name: mediarr + +environment: + GO111MODULE: on + +install: + - go version + - go env + +before_build: + - |- + if [ ${APPVEYOR_REPO_TAG} = "true" ]; then + export VERSION=${APPVEYOR_REPO_TAG_NAME} + fi + +build_script: + - make build + +after_build: + - |- + export build=$(find dist/* -type d | sed 's!.*/!!') + cd dist/$build + tar -czf $build.tar.tgz mediarr + cd ../..