dotnet-installer/tools/DebianPackageTool/setup/test_setup.sh

27 lines
728 B
Bash
Raw Normal View History

#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
2015-10-15 23:16:58 +00:00
install_dependencies(){
2015-10-22 17:23:47 +00:00
# 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
2015-10-15 23:16:58 +00:00
}
install_bats(){
2015-10-22 17:23:47 +00:00
git clone https://github.com/sstephenson/bats.git
cd bats
./install.sh /usr/local
2015-10-15 23:16:58 +00:00
}
setup(){
2015-10-22 17:23:47 +00:00
install_dependencies
install_bats
2015-10-15 23:16:58 +00:00
}
setup