-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from fiaas/semaphore-setup
Semaphore setup
- Loading branch information
Showing
8 changed files
with
97 additions
and
430 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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+$ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.