-
Notifications
You must be signed in to change notification settings - Fork 26
/
codeship-steps.yml
35 lines (29 loc) · 1.08 KB
/
codeship-steps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
- name: lint-and-format-check
service: avirshup/docker-make
command: black --check DockerMake
- name: clean-build
service: avirshup/docker-make
command: sh -c "rm -f /opt/distfiles/*"
- name: build-pkg
service: avirshup/docker-make
command: sh -c 'cp -v /opt/DockerMake/dist/DockerMake-*.tar.gz /opt/distfiles/'
- name: test
type: serial
services:
- testenv-python3.6
- testenv-python3.7
- testenv-python3.8
steps:
- command: sh -c "pip install /opt/distfiles/DockerMake-*.tar.gz && py.test -v"
- name: deploy-dockerhub
type: push
service: avirshup/docker-make
tag: '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)((a|rc|b)(0|[1-9]\d*))?$' # PEP440 version tags
image_name: avirshup/docker-make
image_tag: "{{.Branch}}"
registry: https://index.docker.io/v1
encrypted_dockercfg_path: deployment/dockercfg.crypt
- name: deploy-pypi
service: deploy-env
command: sh -c "twine upload -u ${PYPI_USER} -p ${PYPI_PASSWORD} /opt/distfiles/DockerMake-${CI_BRANCH}.tar.gz"
tag: '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)((a|rc|b)(0|[1-9]\d*))?$' # PEP440 version tags