about summary refs log tree commit diff stats
path: root/config.sh
blob: ee9a6402a2e41f55fba793ab54416d622090490c (plain) (blame)
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
#!/bin/sh
# Variables that control the program. #
# GIT Repo #
export DSCIP_GITREPO="https://www.example.com/example/example.git"
# GIT MODE:                                                   #
# pull: Doesn't delete previous clone and just pulls changes. #
# clone: Deletes previous clone, and creates a fresh clone.   #
export DSCIP_GITMODE="clone"
# Branch to check #
export DSCIP_BRANCH="master"
WORKING_DIRECTORY="$(pwd -P)"
export WORKING_DIRECTORY
# Commands to run before building. #
export DSCIP_PRE_CMD="$WORKING_DIRECTORY/pre.sh"
# Commands to run to build program. #
export DSCIP_BUILD_CMD="$WORKING_DIRECTORY/build.sh"
# Commands to run after building is done. #
export DSCIP_POST_CMD="$WORKING_DIRECTORY/post.sh"
# chroot mode #
export DSCIP_CHROOT="false"
export DSCIP_CHROOT_USER="dscip"
# Daemon mode options #
export DSCIP_DAEMON="false" # If daemon mode should be enabled or not. #
export DSCIP_DAEMON_FORK="true" # If the daemon should run in the background. #
export DSCIP_SLEEP="60" # How many seconds before the daemon re-runs itself. #
# etc #
export DSCIP_DISREGARD_COMMIT_CHECK="false" # If the script should just rebuild even #
# if upstream has not updated. #
export DSCIP_OUTPUT_TO="$WORKING_DIRECTORY/output.log" # Output to file, default is stdout.