More cleaning up, consistency
This commit is contained in:
parent
6f877ab516
commit
ba82768ba7
4 changed files with 23 additions and 22 deletions
|
@ -1,15 +1,15 @@
|
|||
install_dependencies(){
|
||||
# Add LLdb 3.6 package source
|
||||
echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main" | tee /etc/apt/sources.list.d/llvm.list
|
||||
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -
|
||||
# Add LLdb 3.6 package source
|
||||
echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main" | tee /etc/apt/sources.list.d/llvm.list
|
||||
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -
|
||||
|
||||
#Install Deps
|
||||
apt-get update
|
||||
apt-get install -y debhelper build-essential devscripts git liblttng-ust-dev lldb-3.6-dev
|
||||
#Install Deps
|
||||
apt-get update
|
||||
apt-get install -y debhelper build-essential devscripts git liblttng-ust-dev lldb-3.6-dev
|
||||
}
|
||||
|
||||
setup(){
|
||||
install_dependencies
|
||||
install_dependencies
|
||||
}
|
||||
|
||||
setup
|
|
@ -1,17 +1,22 @@
|
|||
install_dependencies(){
|
||||
apt-get update
|
||||
apt-get install -y debhelper build-essential devscripts git liblttng-ust-dev clang-3.6
|
||||
# Add LLdb 3.6 package source
|
||||
echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main" | tee /etc/apt/sources.list.d/llvm.list
|
||||
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add -
|
||||
|
||||
#Install Deps
|
||||
apt-get update
|
||||
apt-get install -y debhelper build-essential devscripts git liblttng-ust-dev lldb-3.6-dev
|
||||
}
|
||||
|
||||
install_bats(){
|
||||
git clone https://github.com/sstephenson/bats.git
|
||||
cd bats
|
||||
./install.sh /usr/local
|
||||
git clone https://github.com/sstephenson/bats.git
|
||||
cd bats
|
||||
./install.sh /usr/local
|
||||
}
|
||||
|
||||
setup(){
|
||||
install_dependencies
|
||||
install_bats
|
||||
install_dependencies
|
||||
install_bats
|
||||
}
|
||||
|
||||
setup
|
|
@ -64,10 +64,6 @@ test_debian_package(){
|
|||
popd
|
||||
|
||||
bats $PACKAGE_OUTPUT_DIR/test_package.bats
|
||||
|
||||
# if [[ -d "$PACKAGE_OUTPUT_DIR/integration_tests" ]]; then
|
||||
# bats
|
||||
# fi
|
||||
}
|
||||
|
||||
execute
|
||||
|
|
|
@ -13,7 +13,8 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
|
|||
done
|
||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||
|
||||
|
||||
# This function is necessary to bypass POSIX Path Conversion in Git Bash
|
||||
# http://www.mingw.org/wiki/Posix_path_conversion
|
||||
_convert_path(){
|
||||
local path=$1
|
||||
path=$( echo "$path" | sed -r 's/[\/]+/\\/g')
|
||||
|
@ -36,7 +37,7 @@ execute(){
|
|||
check_prereqs
|
||||
|
||||
echo "Setting up VM..."
|
||||
create_or_start_vm #>> /dev/null 2>&1
|
||||
create_or_start_vm
|
||||
|
||||
echo "Copying code from Host to VM"
|
||||
eval $(docker-machine env --shell bash $VM_NAME)
|
||||
|
@ -60,7 +61,6 @@ check_prereqs(){
|
|||
exit 1
|
||||
fi
|
||||
|
||||
#TODO: check virtualbox?
|
||||
}
|
||||
|
||||
create_or_start_vm(){
|
||||
|
@ -95,7 +95,7 @@ copy_results_from_vm(){
|
|||
|
||||
mkdir $T_RESULTS_DIR
|
||||
docker-machine ssh $VM_NAME "sudo chmod -R a+rx $VM_CODE_DIR"
|
||||
docker-machine scp -r $VM_NAME:$VM_CODE_DIR/artifacts $REPO_ROOT #>> /dev/null 2>&1
|
||||
docker-machine scp -r $VM_NAME:$VM_CODE_DIR/artifacts $REPO_ROOT >> /dev/null 2>&1
|
||||
}
|
||||
|
||||
execute
|
||||
|
|
Loading…
Reference in a new issue