You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1020 B

#!/bin/bash
function linux () {
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install --yes --force-yes -o Dpkg::Options::="--force-confnew" linux-image-extra-$(uname -r) docker-engine
sudo service docker stop || exit
sudo rm -rf /var/lib/docker || exit
sudo service docker start || exit
}
# TODO method should update osx, brew, packages etc needed for juCi++
function osx () {
brew update
brew rm llvm
brew doctor
brew upgrade
brew install --with-clang --with-lldb llvm
brew install cmake pkg-config boost homebrew/x11/gtksourceviewmm3 aspell clang-format
}
function windows () {
arch=x86_64
if [ "$PLATFORM" == "x86" ]; then
arch=i686
fi
sh -c "pacman -S git mingw-w64-${arch}-cmake make mingw-w64-${arch}-toolchain mingw-w64-${arch}-clang mingw-w64-${arch}-gtkmm3 mingw-w64-${arch}-gtksourceviewmm3 mingw-w64-${arch}-boost mingw-w64-${arch}-aspell mingw-w64-${arch}-aspell-en"
}
if [ "$TRAVIS_OS_NAME" == "" ]; then
TRAVIS_OS_NAME=windows
fi
$TRAVIS_OS_NAME