Skip to content

Commit a3f70a9

Browse files
committed
Make script/test use Docker
Really easy to run entire test suite with Docker now. Also switch Wercker to use the same script. Signed-off-by: Ben Firshman <ben@firshman.co.uk>
1 parent f407504 commit a3f70a9

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

script/test

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
2-
set -e
3-
flake8 fig
4-
PYTHONIOENCODING=ascii nosetests $@
2+
set -ex
3+
docker build -t fig .
4+
docker run -v /var/run/docker.sock:/var/run/docker.sock fig flake8 fig
5+
docker run -v /var/run/docker.sock:/var/run/docker.sock fig nosetests $@

wercker.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ build:
44
- script:
55
name: validate DCO
66
code: script/validate-dco
7-
- script:
8-
name: build
9-
code: docker build -t fig .
10-
- script:
11-
name: flake8
12-
code: docker run -v /var/run/docker.sock:/var/run/docker.sock fig flake8 fig
137
- script:
148
name: run tests
15-
code: docker run -v /var/run/docker.sock:/var/run/docker.sock fig nosetests
9+
code: script/test

0 commit comments

Comments
 (0)