ci/{build,deploy}.sh: Use /bin/sh, vt220
[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 export TERM="vt220"
11
12 SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]}))
13 BUILD_BASE=$(readlink -e ${SCRIPT_DIR}/../upstream/fuel/build)
14
15 export ARMBAND_BASE=$(readlink -e ${SCRIPT_DIR}/..)
16 export OPNFV_GIT_SHA=$(git rev-parse HEAD)
17 export LOCAL_CACHE_ARCH_NAME="armband-cache"
18
19 # Initialize Armband git submodules & apply patches first
20 make -C ${ARMBAND_BASE} patches-import
21 cd ${ARMBAND_BASE}/upstream/fuel/ci && ./build.sh $*