forked from voxpupuli/puppet-augeasproviders_grub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.sh
executable file
·41 lines (36 loc) · 1.03 KB
/
.travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
set -xe
# Clone submodules in tree
git submodule update --init
if [ -z $AUGEAS ]; then
# Use latest version of lenses
cd augeas && git pull origin master
PKG_VERSION=""
else
if [ -z $LENSES ]; then
# Use matching version of lenses
cd augeas && git fetch && git checkout release-${AUGEAS}
else
cd augeas && git fetch && git checkout $LENSES
fi
PKG_VERSION="=${AUGEAS}*"
# Add PPA
sudo add-apt-repository -y ppa:raphink/augeas-1.0.0
sudo add-apt-repository -y ppa:raphink/augeas-1.1.0
sudo add-apt-repository -y ppa:raphink/augeas-1.2.0
sudo add-apt-repository -y ppa:raphink/augeas-1.3.0
fi
sudo add-apt-repository -y ppa:raphink/augeas
sudo apt-get update
sudo apt-get install augeas-tools${PKG_VERSION} \
augeas-lenses${PKG_VERSION} \
libaugeas0${PKG_VERSION} \
libaugeas-dev${PKG_VERSION} \
libxml2-dev
# Install gems
gem install bundler
bundle install
# Reporting only
bundle show
puppet --version
augtool --version