-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
43 lines (40 loc) · 930 Bytes
/
.drone.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
36
37
38
39
40
41
42
43
matrix:
DJANGO_VERSION:
- <1.9
- <2.0
pipeline:
test:
image: presslabs/silver
pull: true
environment:
- SILVER_DB_ENGINE=django.db.backends.mysql
- SILVER_DB_NAME=test_db
- SILVER_DB_HOST=mysql
- SILVER_DB_USER=silver
- SILVER_DB_PASSWORD=silver
commands:
- make dependencies
- pip install -U "Django${DJANGO_VERSION}"
- mkdir /var/log/silver
- make lint
- make test
publish-docker:
image: plugins/docker
repo: presslabs/silver
tags: ["${DRONE_BRANCH/master/latest}", "${DRONE_COMMIT_SHA:0:7}"]
force_tag: true
secrets:
- DOCKER_USERNAME
- DOCKER_PASSWORD
when:
event: [push, tag]
services:
mysql:
image: mysql:5.5
environment:
- MYSQL_DATABASE=test_db
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_USER=silver
- MYSQL_PASSWORD=silver
redis:
image: redis:3-alpine