Skip to content

Commit

Permalink
Automated Binary Releases on github
Browse files Browse the repository at this point in the history
Creates binary linux, osx and windows releases and uploads them to
github automatically.

linux: travis
osx: travis
windows: appveyor
  • Loading branch information
stefanfoulis committed Jul 6, 2017
1 parent fb92a66 commit cd84224
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.*
!.gitignore
!.travis.yml
*.pyc
*.pyo

Expand Down
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 14 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

0 comments on commit cd84224

Please sign in to comment.