Add a single test project and set to build on travis/appveyor

This commit is contained in:
Joe Rickerby
2017-03-20 23:54:29 +00:00
parent 095a857dcf
commit 309a2adcda
6 changed files with 91 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
from __future__ import print_function
import os, sys, subprocess
from glob import glob
# move cwd to the project root
os.chdir(os.path.dirname(os.path.abspath(__file__)))
test_projects = glob('test/??_*')
if len(test_projects) == 0:
print('No test projects found. Aborting.', file=sys.stderr)
exit(2)
print('Testing projects:', test_projects)
for project_path in test_projects:
subprocess.check_call(['cibuildwheel', project_path])
print('%s built successfully.' % project_path)
print('%d projects built successfully.' % len(test_projects))