Merge pull request #4 from cyplo/dockerize_fedora

Dockerize fedora tests
This commit is contained in:
Cyryl Płotnicki-Chudyk 2016-07-01 23:30:14 +02:00 committed by GitHub
commit 13aa22cb5e
6 changed files with 43 additions and 14 deletions

View file

@ -1,6 +1,12 @@
language: bash
language:
- bash
script: ./bunsen/test_outsider
script:
- ./test
env:
- DETECTED_OS=fedora
- DETECTED_OS=bunsen
sudo: required

View file

@ -96,15 +96,6 @@ set -e
cargo install rustfmt
cargo install racer
# rvm
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
$CURL -L https://get.rvm.io | bash -s stable
set +e
source /etc/profile.d/rvm.sh
source $HOME/.rvm/scripts/rvm
set -e
rvm install ruby
# go
export GOPATH="$HOME/go"
mkdir -p "$GOPATH"

View file

@ -1,16 +1,20 @@
#!/bin/bash
set -e
#software and shell
sudo dnf -y upgrade --best --allowerasing
sudo dnf -y --best --allowerasing install vim tmux atop zsh thunderbird thunderbird-enigmail thunderbird-lightning firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel meld whois curl pv tor torsocks nodejs npm terminator gsmartcontrol python-pip mercurial python-devel libxslt-devel libjpeg-turbo-devel conky conky-manager redshift redshift-gtk cmake gtk2-devel intltool gparted wine solaar glances the_silver_searcher dkms kernel-devel gimp transmission-gtk
sudo dnf -y --best --allowerasing install vim tmux atop zsh thunderbird thunderbird-enigmail thunderbird-lightning firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel meld whois curl pv tor torsocks nodejs terminator gsmartcontrol python-pip mercurial python-devel libxslt-devel libjpeg-turbo-devel conky conky-manager redshift redshift-gtk cmake gtk2-devel intltool gparted wine solaar glances the_silver_searcher dkms kernel-devel gimp transmission-gtk git xz util-linux-user powertop
FEDORA_VERSION=`rpm -E %fedora`
sudo dnf -y install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$FEDORA_VERSION.noarch.rpm
sudo dnf -y install http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$FEDORA_VERSION.noarch.rpm
sudo dnf -y --best --allowerasing install vlc splix gutenprint-cups cups-bjnp keepass mplayer golang
sudo dnf -y groupinstall "C Development Tools and Libraries"
sudo systemctl enable tor
sudo systemctl start tor
if [[ -z $DONT_START_TOR ]]; then
sudo systemctl enable tor
sudo systemctl start tor
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DIR="$DIR/../"

16
fedora/test_insider Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
set -e
export DONT_CHANGE_SHELL=true
export DONT_START_TOR=true
dnf -y install sudo
cd $HOME
mkdir -p dev/
cp -rv temp/dotfiles dev/
./dev/dotfiles/fedora/configure_fresh_system

3
fedora/test_outsider Executable file
View file

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

9
test Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
if [[ -z $DETECTED_OS ]]; then
echo "cannot detect OS, please set DETECTED_OS manually"
exit 1
fi
./$DETECTED_OS/test_outsider