1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 02:29:47 +02:00

use atd for task planning

This commit is contained in:
lxsang
2020-06-26 01:34:09 +02:00
parent 2dd98bc20f
commit 757ebdd4ee
2 changed files with 22 additions and 27 deletions

View File

@ -1,25 +1,28 @@
#! /bin/bash
BRANCH="master"
BRANCH="ci"
REPO="https://github.com/lxsang/antos.git"
DEST="/opt/www/htdocs/os"
if [ ! -z $1 ]; then
BRANCH="$1"
fi
echo "Build date: $(date)"
echo "Building AntOS using branch $BRANCH..."
if [ -d "/tmp/ci" ]; then
echo "Clean up /tmp/ci"
rm -rf /tmp/ci/*
else
echo "Creating /tmp/ci"
mkdir -p "/tmp/ci"
fi
cd /tmp/ci || (echo "Unable to change directory to /tmp/ci" && exit 1)
echo "Cloning Antos (branch $BRANCH) to /tmp/ci..."
git clone -b "$BRANCH" --single-branch --depth=1 "$REPO"
npm i @types/jquery
cd antos || (echo "Unable to change directory to source code folder" && exit 1)
BUILDDIR="$DEST" make release
echo "Done!"
{
echo "Build date: $(date)"
echo "Building AntOS using branch $BRANCH..."
if [ -d "/tmp/ci" ]; then
echo "Clean up /tmp/ci"
rm -rf /tmp/ci/*
else
echo "Creating /tmp/ci"
mkdir -p "/tmp/ci"
fi
cd /tmp/ci || (echo "Unable to change directory to /tmp/ci" && exit 1)
echo "Cloning Antos (branch $BRANCH) to /tmp/ci..."
git clone -b "$BRANCH" --single-branch --depth=1 "$REPO"
npm i @types/jquery
cd antos || (echo "Unable to change directory to source code folder" && exit 1)
BUILDDIR="$DEST" make release
echo "Done!"
} > "/opt/www/htdocs/ci/log/antos_$BRANCH.txt"