forked from voxpupuli/puppet-augeasproviders
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.sh
executable file
·40 lines (35 loc) · 1001 Bytes
/
.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
#!/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 checkout release-${AUGEAS}
else
cd augeas && git checkout $LENSES
fi
PKG_VERSION="=${AUGEAS}*"
# Add PPA
# We only have working PPAs for precise for 1.0.0 and 1.1.0 for now...
sudo add-apt-repository -y ppa:raphink/augeas-1.0.0
sudo add-apt-repository -y ppa:raphink/augeas-1.1.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 update puppet
# Reporting only
bundle show
puppet --version
augtool --version