Browse Source

Try setting workspace to root and installing stuff as user

Getty Ritter 4 years ago
parent
commit
d35677d955
1 changed files with 5 additions and 7 deletions
  1. 5 7
      .drone.yml

+ 5 - 7
.drone.yml

@@ -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