Really easy to run entire test suite with Docker now. Also switch Wercker to use the same script. Signed-off-by: Ben Firshman <[email protected]>
@@ -1,4 +1,5 @@
#!/bin/sh
-set -e
-flake8 fig
-PYTHONIOENCODING=ascii nosetests $@
+set -ex
+docker build -t fig .
+docker run -v /var/run/docker.sock:/var/run/docker.sock fig flake8 fig
+docker run -v /var/run/docker.sock:/var/run/docker.sock fig nosetests $@
@@ -4,12 +4,6 @@ build:
- script:
name: validate DCO
code: script/validate-dco
- - script:
- name: build
- code: docker build -t fig .
- name: flake8
- code: docker run -v /var/run/docker.sock:/var/run/docker.sock fig flake8 fig
name: run tests
- code: docker run -v /var/run/docker.sock:/var/run/docker.sock fig nosetests
+ code: script/test