-
Notifications
You must be signed in to change notification settings - Fork 9
/
builder.sh
executable file
·34 lines (30 loc) · 1.11 KB
/
builder.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
#!/bin/bash
# Build script that should simplify Jenkins configuration.
# Exit if any command returns non-zero
set -e
BUILD_DIR=$HOME/$CIRCLE_PROJECT_REPONAME
if [ -d revelator ]; then
echo "******** Checking for latest version of Revelator ********"
cd revelator
git pull
cd ..
else
echo "******** Downloading Revelator ********"
git clone https://github.com/mpdehaan/revelator.git
ln -fs revelator/reveal_js_261
fi
echo "******** Looping over folders ********"
for i in fundamentals lunchlearn operational
do
echo "******** Syntax Check on $i ********"
python $BUILD_DIR/syntax_check.py $BUILD_DIR/$i/*.yml
echo "******** Creating output folder for $i ********"
mkdir -p output/$i
echo "******** Build Single on $i ********"
python $BUILD_DIR/build_single.py $BUILD_DIR/$i > $i_comp.yml
echo "******** Generating Slides on $i ********"
python revelator/write_it $i_comp.yml output/$i
echo "******** Hacking stylesheets for $i ********"
sed -e '32s/#eeeeee/#000000/' -i output/$i/css/theme/default.css
sed -e '49s/#eeeeee/#000000/' -i output/$i/css/theme/default.css
done