Skip to content

Commit

Permalink
Merge pull request #60 from fiaas/semaphore-setup
Browse files Browse the repository at this point in the history
Semaphore setup
  • Loading branch information
mortenlj authored Aug 29, 2019
2 parents 7b4df2d + 15314db commit fb76a1d
Show file tree
Hide file tree
Showing 8 changed files with 97 additions and 430 deletions.
29 changes: 29 additions & 0 deletions .semaphore/make-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: v1.0
name: Publish k8s library
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: Publish
task:
secrets:
- name: github-credentials
- name: pypi-credentials
env_vars:
- name: PIP_CACHE_DIR
value: .pip_cache
prologue:
commands:
- export PATH="${HOME}/.local/bin":"${PATH}"
- checkout
- mkdir "${PIP_CACHE_DIR}"
- cache restore "setup-${SEMAPHORE_GIT_BRANCH}-$(checksum setup.py)","setup-${SEMAPHORE_GIT_BRANCH}",setup-master
- pip install --user publish
jobs:
- name: Publish
commands:
- publish fiaas k8s
epilogue:
commands:
- cache store "setup-${SEMAPHORE_GIT_BRANCH}-$(checksum setup.py)" "${PIP_CACHE_DIR}"
41 changes: 41 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: v1.0
name: Build k8s library
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804
blocks:
- name: Run tests
task:
secrets:
- name: publish-codacy-token
env_vars:
- name: PIP_CACHE_DIR
value: .pip_cache
prologue:
commands:
- export PATH="${HOME}/.local/bin":"${PATH}"
- checkout
- mkdir "${PIP_CACHE_DIR}"
- cache restore "setup-${SEMAPHORE_GIT_BRANCH}-$(checksum setup.py)","setup-${SEMAPHORE_GIT_BRANCH}",setup-master
- pip install --user tox
jobs:
- name: Tests
commands:
- tox
matrix:
- env_var: TOXENV
values: ["py27", "py35", "py36", "py37"]
- name: Gather coverage data
commands:
- tox -e coverage
epilogue:
commands:
- cache store "setup-${SEMAPHORE_GIT_BRANCH}-$(checksum setup.py)" "${PIP_CACHE_DIR}"
promotions:
- name: Make release
pipeline_file: make-release.yml
auto_promote_on:
- result: passed
branch:
- ^refs/tags/v\d+\.\d+\.\d+$
67 changes: 0 additions & 67 deletions bin/get_github_release.py

This file was deleted.

232 changes: 0 additions & 232 deletions bin/release.py

This file was deleted.

Loading

0 comments on commit fb76a1d

Please sign in to comment.