Cleanup assemble script to keep workspace clean

pull/6/head v0.1
yuvipanda 2017-04-14 11:43:27 -07:00
rodzic 12a89763eb
commit b73f1be863
1 zmienionych plików z 4 dodań i 8 usunięć

Wyświetl plik

@ -13,15 +13,11 @@ fi
# Restore artifacts from the previous build (if they exist).
#
if [ "$(ls /tmp/artifacts/ 2>/dev/null)" ]; then
echo "---> Restoring build artifacts..."
mv /tmp/artifacts/. ./
fi
echo "---> Installing application source..."
cp -Rf /tmp/src/. ./
mkdir -p ${APP_DIR}/src
cp -Rf /tmp/src/. ${APP_DIR}/src
echo "---> Building application from source..."
if [ -f requirements.txt ]; then
${APP_DIR}/venv/bin/pip install --no-cache-dir -r requirements.txt
if [ -f ${APP_DIR}/src/requirements.txt ]; then
${APP_DIR}/venv/bin/pip install --no-cache-dir -r ${APP_DIR}/src/requirements.txt
fi