Skip to content

Commit bbb5e17

Browse files
author
Carlo Smouter
committed
Change drone file to work with drone cloud
1 parent 3d6d9d6 commit bbb5e17

File tree

2 files changed

+31
-22
lines changed

2 files changed

+31
-22
lines changed

.drone.yml

+24-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
pipeline:
2-
test:
3-
image: python:${PYTHON_VERSION}-alpine3.8
4-
group: build
5-
commands:
6-
- pip install --upgrade pip
7-
- pip install -e .
8-
- pip install -e .[tests]
9-
- py.test
10-
package:
11-
image: python:${PYTHON_VERSION}-alpine3.8
12-
group: build
13-
commands:
14-
- python setup.py sdist bdist_wheel
15-
- rm -rf dist
16-
- rm -rf build
17-
matrix:
18-
PYTHON_VERSION:
19-
- "3.7"
20-
- "3.6"
21-
- "3.5"
22-
- "2.7"
1+
---
2+
kind: pipeline
3+
name: default
4+
5+
steps:
6+
- name: build27
7+
image: python:2.7-alpine3.8
8+
commands:
9+
- ./drone.sh
10+
11+
- name: build35
12+
image: python:3.5-alpine3.8
13+
commands:
14+
- ./drone.sh
15+
16+
- name: build36
17+
image: python:3.6-alpine3.8
18+
commands:
19+
- ./drone.sh
20+
21+
- name: build37
22+
image: python:3.7-alpine3.8
23+
commands:
24+
- ./drone.sh

drone.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
python setup.py sdist bdist_wheel
2+
rm -rf dist
3+
rm -rf build
4+
pip install --upgrade pip
5+
pip install -e .
6+
pip install -e .[tests]
7+
py.test

0 commit comments

Comments
 (0)