2015-06-29 10:28:15 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
2015-07-10 12:38:18 -07:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2016-06-06 11:37:45 +08:00
|
|
|
from kolla.image import build
|
2015-07-13 23:50:06 -04:00
|
|
|
|
2015-12-24 01:07:29 +08:00
|
|
|
|
2016-05-25 04:04:52 -05:00
|
|
|
def main():
|
2016-06-06 11:37:45 +08:00
|
|
|
statuses = build.run_build()
|
2016-05-31 12:01:06 -05:00
|
|
|
if statuses:
|
|
|
|
bad_results, good_results, unmatched_results = statuses
|
|
|
|
if bad_results:
|
|
|
|
return 1
|
|
|
|
return 0
|
2016-05-25 04:04:52 -05:00
|
|
|
|
|
|
|
|
2015-06-29 10:28:15 +00:00
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|