2016-01-04 11:48:03 +00:00
|
|
|
# The scripts for building the base images can be found in scripts/drone-images
|
|
|
|
|
2016-01-04 10:28:22 +00:00
|
|
|
build:
|
|
|
|
flake8:
|
2016-02-01 12:10:33 +00:00
|
|
|
image: python:3.5
|
2016-01-04 10:28:22 +00:00
|
|
|
commands:
|
2016-02-01 12:10:33 +00:00
|
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install flake8
|
2016-01-04 10:28:22 +00:00
|
|
|
- flake8 wagtail
|
|
|
|
jscs:
|
2016-02-01 12:28:25 +00:00
|
|
|
image: node:4.2.4
|
2016-01-04 10:28:22 +00:00
|
|
|
commands:
|
2016-02-01 12:28:25 +00:00
|
|
|
- npm install -g jscs@"^1.12.0"
|
2016-01-04 10:28:22 +00:00
|
|
|
- jscs ./wagtail
|
|
|
|
scss-lint:
|
|
|
|
image: wagtail-scss-lint
|
|
|
|
commands:
|
|
|
|
- scss-lint
|
2016-01-27 12:14:40 +00:00
|
|
|
unittest:
|
|
|
|
image: python:3.5
|
|
|
|
commands:
|
|
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install wheel
|
2016-02-03 01:56:48 +00:00
|
|
|
- XDG_CACHE_HOME=/drone/pip-cache pip install -e .[testing,docs]
|
2016-01-27 12:14:40 +00:00
|
|
|
- python runtests.py
|
|
|
|
|
|
|
|
cache:
|
|
|
|
mount:
|
2016-02-01 12:28:25 +00:00
|
|
|
- node_modules
|
2016-01-27 12:14:40 +00:00
|
|
|
- /drone/pip-cache
|