|
@@ -1,31 +1,29 @@
|
|
kind: pipeline
|
|
kind: pipeline
|
|
name: default
|
|
name: default
|
|
|
|
|
|
|
|
+workspace:
|
|
|
|
+ path: /root
|
|
|
|
+
|
|
steps:
|
|
steps:
|
|
- name: setup
|
|
- name: setup
|
|
image: python
|
|
image: python
|
|
commands:
|
|
commands:
|
|
- - python3 -m virtualenv .
|
|
|
|
- - source ./bin/activate
|
|
|
|
- - pip install poetry
|
|
|
|
- - pip install invoke
|
|
|
|
|
|
+ - pip install poetry --user
|
|
|
|
+ - pip install invoke --user
|
|
- poetry config virtualenvs.in-project true --local
|
|
- poetry config virtualenvs.in-project true --local
|
|
- poetry install
|
|
- poetry install
|
|
|
|
|
|
- name: test
|
|
- name: test
|
|
image: python
|
|
image: python
|
|
commands:
|
|
commands:
|
|
- - source ./bin/activate
|
|
|
|
- inv test
|
|
- inv test
|
|
|
|
|
|
- name: typecheck
|
|
- name: typecheck
|
|
image: python
|
|
image: python
|
|
commands:
|
|
commands:
|
|
- - source ./bin/activate
|
|
|
|
- poetry run inv tc
|
|
- poetry run inv tc
|
|
|
|
|
|
- name: format
|
|
- name: format
|
|
image: python
|
|
image: python
|
|
commands:
|
|
commands:
|
|
- - source ./bin/activate
|
|
|
|
- poetry run inv checkfmt
|
|
- poetry run inv checkfmt
|