Run script now fails if docker build fails
This commit is contained in:
@@ -8,9 +8,13 @@ import sys
|
||||
if __name__ == "__main__":
|
||||
print("Building and running integration tests...")
|
||||
print("Building Spoolman...")
|
||||
os.system("docker build -t donkie/spoolman:test .")
|
||||
if os.system("docker build -t donkie/spoolman:test .") > 0:
|
||||
print("Failed to build Spoolman!")
|
||||
sys.exit(1)
|
||||
print("Building Spoolman tester...")
|
||||
os.system("docker build -t donkie/spoolman-tester:latest tests_integration")
|
||||
if os.system("docker build -t donkie/spoolman-tester:latest tests_integration") > 0:
|
||||
print("Failed to build Spoolman tester!")
|
||||
sys.exit(1)
|
||||
|
||||
# Support input arguments for running only specific tests
|
||||
if len(sys.argv) > 1:
|
||||
|
||||
Reference in New Issue
Block a user