From cd842246b89fdc8a94b62662ab8fb4eb069996bc Mon Sep 17 00:00:00 2001 From: Stefan Foulis Date: Thu, 6 Jul 2017 14:20:46 +0200 Subject: [PATCH] Automated Binary Releases on github Creates binary linux, osx and windows releases and uploads them to github automatically. linux: travis osx: travis windows: appveyor --- .gitignore | 1 + .travis.yml | 32 ++++++++++++++++++++++++++++++++ appveyor.yml | 15 ++++++++++++++- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index 8fef1393..82f7b053 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .* !.gitignore +!.travis.yml *.pyc *.pyo diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..2bf77dcd --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +language: python +os: linux + +matrix: + include: + - language: generic + os: osx + before_install: + - brew update + - brew install python3 + - virtualenv env -p python3 + - source env/bin/activate + - language: python + os: linux + python: 3.6 + +script: "./scripts/build-unix.sh" + +deploy: + provider: releases + api_key: + secure: f8aJvEKPRq2L4GpLmZYn57S8YdDxdgLhdgig65DxpEB8OdwhiKlbsJt8JoTYfz3au5ocwvlvmnV+3HjZUiKcqjRudUCi87F73J1woGF+a/Az6h2dLGWeFb31pwVxRFJs32iLL0EMTvtIdEVjrUOt1DqP3vPAuEEzdQboZj6eZZg= + file_glob: true + file: "binary/divio-*" + skip_cleanup: true + overwrite: true + draft: true + name: $TRAVIS_TAG + tag: $TRAVIS_TAG + on: + repo: divio/divio-cli + tags: true diff --git a/appveyor.yml b/appveyor.yml index 09bd9ed5..350b29e6 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,6 +3,9 @@ version: 3.1.0-{build} pull_requests: do_not_increment_build_number: true +skip_non_tags: true +skip_branch_with_pr: true + install: - "SET PATH=C:\\Python27-x64;C:\\Python27-x64\\Scripts;%PATH%" - "python --version" @@ -14,5 +17,15 @@ test_script: - ps: ".\\binary\\divio-Windows version" artifacts: - - path: .\binary\divio-Windows.exe + - path: binary\divio-Windows.exe name: "divio-cli Windows binary" + +deploy: + release: $(APPVEYOR_REPO_TAG_NAME) + provider: GitHub + auth_token: + secure: VxpJaAiXiayxRt45aoDKuPokJVJ9YkQubcTPQY898b/AITBoCnDoBYwCEGyQBNj3 + artifact: binary\divio-Windows.exe + draft: true + on: + appveyor_repo_tag: true