From 234ed7e9edefec299f11272ebeabfe5c20a1a10f Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 11 Mar 2019 16:50:10 +0000 Subject: [PATCH] Add CI task --- build | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/build b/build index fdeb2c4..a1989a6 100755 --- a/build +++ b/build @@ -90,7 +90,7 @@ task_dev-server-stop() { task_end $?; } -function task_main-watch { +task_main-watch() { set_title "Build Watcher"; echo -e "Watching for changes."; @@ -125,6 +125,25 @@ task_js-css() { task_end $? "Error: rollup packing failed!"; } +task_ci() { + task_begin "Environment Information"; + execute git --version; + execute node --version; + execute npm --version; + task_end $?; + + tasks_run setup main archive; +} + + +task_archive() { + task_begin "Archiving"; + mv "dist/" "Linux101/"; + tar cafv "${ARCHIVE}/slides.tar.bz2" "Linux101/"; + mv "Linux101/" "dist/"; + task_end $?; +} + ###############################################################################