Add CI task
Some checks are pending
continuous-integration/laminar-elessar Build failed with exit code 55 after 8 seconds
Some checks are pending
continuous-integration/laminar-elessar Build failed with exit code 55 after 8 seconds
This commit is contained in:
parent
23325d02fc
commit
234ed7e9ed
1 changed files with 20 additions and 1 deletions
21
build
21
build
|
@ -90,7 +90,7 @@ task_dev-server-stop() {
|
||||||
task_end $?;
|
task_end $?;
|
||||||
}
|
}
|
||||||
|
|
||||||
function task_main-watch {
|
task_main-watch() {
|
||||||
set_title "Build Watcher";
|
set_title "Build Watcher";
|
||||||
|
|
||||||
echo -e "Watching for changes.";
|
echo -e "Watching for changes.";
|
||||||
|
@ -125,6 +125,25 @@ task_js-css() {
|
||||||
task_end $? "Error: rollup packing failed!";
|
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 $?;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue