-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.sh
executable file
·44 lines (34 loc) · 1.16 KB
/
build.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
#!/bin/bash
# Going to print some fancy text to make this easy to identify in netlify logs
echo -e "\n"
echo -e "\n"
echo -e "\n"
echo -e "\n"
echo -e "\n"
echo "------------------------------------------------------------------------"
echo "BUILD START"
echo "------------------------------------------------------------------------"
# Print the version of the tools we are using
echo "Python version"
python --version
echo "Node version"
node --version
echo "NPM version"
npm --version
echo "PIP version"
pip --version
echo "------------------------------------------------------------------------"
echo "ENVIRONMENT VARIABLES"
echo "====================="
echo "DEBUG_MODE = $DEBUG_MODE"
echo "BUILD_TOKEN = $BUILD_TOKEN"
echo "------------------------------------------------------------------------"
# install NPM dependencies
npm install
# install PIP dependencies
pip install -r requirements.txt
nikola build
nikola build # we need to run this twice to pick up gulp/sass stuff
echo "------------------------------------------------------------------------"
echo "BUILD COMPLETED SUCCESSFULLY!"
echo "------------------------------------------------------------------------"