summaryrefslogtreecommitdiffstats
path: root/ci/build.sh
blob: 113f35d679412ceeae487c6e7ba5b4e0d57466dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
##############################################################################
# Copyright (c) 2016 Dan Radez (Red Hat) and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
set -e
rpm -q ansible || sudo yum -y install ansible
ansible-playbook --become -i "localhost," -c local $DIR/../lib/ansible/playbooks/build_dependencies.yml -vvv
make -C $DIR/../build clean
python3 $DIR/../apex/build.py $@