forked from voxpupuli/puppet-puppetserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.sh
executable file
·45 lines (40 loc) · 1.12 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
42
43
44
45
#!/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 -y augeas-tools${PKG_VERSION} \
augeas-lenses${PKG_VERSION} \
libaugeas0${PKG_VERSION} \
libaugeas-dev${PKG_VERSION} \
libxml2-dev
# Install gems
gem install bundler
if [ -z $BEAKER_set ]; then
bundle install --without system_tests
else
bundle install
fi
# Reporting only
bundle show
puppet --version
augtool --version