Migrates Apex to Python
[apex.git] / ci / build.sh
1 #!/bin/sh
2 ##############################################################################
3 # Copyright (c) 2016 Dan Radez (Red Hat) and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
12 set -e
13 rpm -q ansible || sudo yum -y install ansible
14 ansible-playbook --become -i "localhost," -c local $DIR/../lib/ansible/playbooks/build_dependencies.yml -vvv
15 make -C $DIR/../build clean
16 python3 $DIR/../apex/build.py $@