|
@@ -0,0 +1,25 @@
|
|
|
+---
|
|
|
+################
|
|
|
+# Build & Test #
|
|
|
+################
|
|
|
+
|
|
|
+kind: pipeline
|
|
|
+name: run_tests
|
|
|
+
|
|
|
+steps:
|
|
|
+ # Run tests against Python/Flask engine backend (with pytest)
|
|
|
+ - name: build and push
|
|
|
+ image: klakegg/hugo
|
|
|
+ commands:
|
|
|
+ # Install dependencies
|
|
|
+ - wget https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
|
|
|
+ - tar zxvf hugo_0.110.0_linux-amd64.tar.gz
|
|
|
+ # Start with a fresh database (which is already running as a service from Drone)
|
|
|
+ - hugo
|
|
|
+volumes:
|
|
|
+ - name: docker
|
|
|
+ host:
|
|
|
+ path: /var/run/docker.sock
|
|
|
+ - name: pip_cache
|
|
|
+ host:
|
|
|
+ path: /tmp/cache/drone/pip
|