deploy.sh: simple wrapper for fuel@opnfv deploy script
[armband.git] / ci / deploy.sh
1 #!/bin/bash
2 #
3 # (c) 2016 Enea Software AB
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 set -e
11
12 cd $WORKSPACE
13 make submodules-init
14 make patches-import
15
16 # source local environment variables
17 if ! [ -z $LAB_CONFIG_URL ]; then
18     local_env=${LAB_CONFIG_URL}/labs/${TARGET_LAB}/${TARGET_POD}/fuel/config/local_env
19     # try to fetch this file, but don't create it if it does not exist.
20     # We add "|| true" to ignore the curl error when the file does not exist
21     echo "curl -s -f -O $local_env || true"
22     curl -s -f -O $local_env || true
23     local_env=$(basename $local_env)
24     if [ -e $local_env ]; then
25         echo "-- Sourcing local environment file"
26         source $local_env
27     fi
28 fi
29
30 cd upstream/fuel/ci
31 ./deploy.sh $@