Last active
August 29, 2015 14:19
-
-
Save vaskaloidis/b27fe4a3537c1c3e116c to your computer and use it in GitHub Desktop.
va-buil-all.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python | |
# | |
# Build the entire ISAAC Project | |
import subprocess | |
import os | |
import sys | |
projects = ['va-isaac-parent', | |
'va-ochre', | |
'va-isaac-metadata', | |
'va-isaac-mojo', | |
'va-newtons-cradle', | |
'va-logic', | |
'va-query-service', | |
'va-isaac-gui', | |
'va-solor-goods', | |
'va-expression-service', | |
'va-isaac-gui-pa'] | |
defaultArgs = ['-e', 'clean'] | |
def mvn(args): | |
return subprocess.check_call(['mvn'] + args) | |
for project in projects: | |
cwd = os.getcwd() | |
print("In: " + cwd + " Entering project " + project) | |
os.chdir(project) | |
args = defaultArgs | |
if project == 'va-expression-service' or project == 'va-isaac-gui-pa': | |
args.extend(['package']) | |
else: | |
args.extend(['install']) | |
print ("Build Argument") | |
print (args) | |
#This fails the build, if it results in a non-0 exit status | |
mvn(args) | |
os.chdir(os.pardir) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment