p/fuel: ci/deploy.sh: Fix deploy without sudo
[armband.git] / ci / build.sh
1 #!/bin/bash
2 # Copyright (c) 2016 Enea Software AB
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7
8 set -e
9
10 SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
11 BUILD_BASE=$(readlink -f ${SCRIPT_DIR}/../upstream/fuel/build)
12
13 export ARMBAND_BASE=$(readlink -e ${SCRIPT_DIR}/..)
14 export OPNFV_GIT_SHA=$(git rev-parse HEAD)
15 export LOCAL_CACHE_ARCH_NAME="armband-cache"
16
17 # Initialize Armband git submodules & apply patches first
18 make -C ${ARMBAND_BASE} patches-import
19 cd ${ARMBAND_BASE}/upstream/fuel/ci && ./build.sh $*