Merge pull request #5 from cyplo/ubuntu_support

Ubuntu support
This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-07-05 13:14:52 +02:00 committed by GitHub
commit 1a91fddeb4
4 changed files with 38 additions and 8 deletions

View file

@ -7,6 +7,7 @@ script:
env:
- DETECTED_OS=fedora
- DETECTED_OS=bunsen
- DETECTED_OS=ubuntu
sudo: required

View file

@ -1,18 +1,25 @@
#!/bin/bash
# detect if building inside a CI system, like Travis
echo "choosing the more interactive installation method"
COMMAND_PREFIX="apt-get -y";
set -e
set -v
sudo apt-get update
sudo apt-get -y upgrade
install_packages="sudo apt-get -y --fix-missing install aptitude meld whois zsh tmux atop aria2 curl pv gajim tor torsocks nodejs thunderbird thunderbird-enigmail thunderbird-ublock-origin gajim lm-sensors freecad python3-pip meld whois curl pv tor torsocks nodejs npm terminator gsmartcontrol python-pip mercurial redshift gtk-redshift cmake intltool gparted solaar glances silversearcher-ag dkms linux-kernel-headers golang keepass2 libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev git retext kdiff3 gnupg2 realpath apt-file"
UPGRADE_COMMAND="sudo $COMMAND_PREFIX dist-upgrade"
eval ${UPGRADE_COMMAND}
set +e
for i in `seq 1 3`; do
eval $install_packages
done
INSTALL_COMMAND="sudo $COMMAND_PREFIX install meld whois zsh tmux vim atop aria2 curl pv pixz gajim tor torsocks nodejs npm terminator gsmartcontrol python-pip mesa-utils mesa-utils-extra aptitude p7zip-full p7zip-rar thunderbird mercurial kdiff3 gnupg2 python3-setuptools aircrack-ng macchanger realpath python3-dev python3 python3-pip apt-file"
eval ${INSTALL_COMMAND}
set -e
eval $install_packages
if [[ -z $DONT_START_TOR ]]; then
sudo systemctl enable tor
sudo systemctl start tor
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$DIR/../"
DIR="$DIR" $DIR/common/configure_fresh_system

19
ubuntu/test_insider Executable file
View file

@ -0,0 +1,19 @@
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
export DONT_CHANGE_SHELL=true
export DONT_START_TOR=true
echo "APT::Acquire::Retries=16;" >> /etc/apt/apt.conf.d/99_retries
apt-get update
apt-get install sudo
cd $HOME
mkdir -p dev/
cp -rv temp/dotfiles dev/
./dev/dotfiles/ubuntu/configure_fresh_system

3
ubuntu/test_outsider Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
docker run -v `pwd`:/root/temp/dotfiles/ ubuntu:xenial /root/temp/dotfiles/ubuntu/test_insider