diff --git a/script/test b/script/test index 1fd7d2ca4..79cc7e6b2 100755 --- a/script/test +++ b/script/test @@ -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 $@ diff --git a/wercker.yml b/wercker.yml index b013c2a41..6ab2d95e9 100644 --- a/wercker.yml +++ b/wercker.yml @@ -4,12 +4,6 @@ build: - script: name: validate DCO code: script/validate-dco - - script: - name: build - code: docker build -t fig . - - script: - name: flake8 - code: docker run -v /var/run/docker.sock:/var/run/docker.sock fig flake8 fig - script: name: run tests - code: docker run -v /var/run/docker.sock:/var/run/docker.sock fig nosetests + code: script/test