#18 Use a different base image for Drone

已合并
getty 4 年之前 将 2 次代码提交从 getty/gr/different-base-image合并至 getty/master
共有 1 个文件被更改,包括 18 次插入9 次删除
  1. 18 9
      .drone.yml

+ 18 - 9
.drone.yml

@@ -1,15 +1,24 @@
 kind: pipeline
 name: default
 
-workspace:
-  path: /root
-
 steps:
-- name: test_all
-  image: python
+- name: setup
+  image: gdritter/lament-configuration-env:latest
   commands:
-  - pip install poetry
+  - poetry config virtualenvs.in-project true
   - poetry install
-  - poetry run inv test
-  - poetry run inv tc
-  - poetry run inv checkfmt
+
+- name: format
+  image: gdritter/lament-configuration-env:latest
+  commands:
+  - inv checkfmt
+
+- name: typecheck
+  image: gdritter/lament-configuration-env:latest
+  commands:
+  - inv tc
+
+- name: test
+  image: gdritter/lament-configuration-env:latest
+  commands:
+  - inv test