29 lines
601 B
Bash
29 lines
601 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
TMP="$(dirname `realpath $0`)";
|
||
|
TMP="`dirname $TMP`";
|
||
|
source $TMP/environment.sh;
|
||
|
|
||
|
#################################################
|
||
|
## ##
|
||
|
## Executed on 'env' Coninuous Integration ##
|
||
|
## ##
|
||
|
#################################################
|
||
|
|
||
|
|
||
|
TRIGGER="`realpath $ROOT/../../virtual/ci/env`";
|
||
|
while [ -f $TRIGGER ]; do
|
||
|
|
||
|
sleep 1;
|
||
|
|
||
|
done;
|
||
|
|
||
|
# 1. Go to root directory
|
||
|
cd $ROOT/../..;
|
||
|
|
||
|
# 2. Pull sources
|
||
|
git pull origin master;
|
||
|
|
||
|
# 3. Stop environment
|
||
|
# 4. Rebuild environment
|
||
|
( make stop; make start );
|