Compare commits
No commits in common. "dabe0a2ef57682f1eae5e27c60cbf68a366fc54a" and "093ed09293a191b57c016ce562bab004d408f75c" have entirely different histories.
dabe0a2ef5
...
093ed09293
23
run-ci.sh
23
run-ci.sh
|
@ -26,17 +26,8 @@ function enter-section() {
|
||||||
|
|
||||||
eval "$2"
|
eval "$2"
|
||||||
exit_status=$?
|
exit_status=$?
|
||||||
|
if ! [ $exit_status -eq $3 ]; then
|
||||||
if [ "$3" == "should fail" ]; then
|
abort "command: $2 failed in section: $1"
|
||||||
log "INFO" "expected to fail..."
|
|
||||||
if [ $exit_status -eq 0 ]; then
|
|
||||||
abort "command: $2 failed in section: $1 with: $exit_status"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
log "INFO" "expected to pass..."
|
|
||||||
if [ ! $exit_status -eq 0 ]; then
|
|
||||||
abort "command: $2 failed in section: $1 with: $exit_status"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\\n"
|
printf "\\n"
|
||||||
|
@ -45,10 +36,10 @@ function enter-section() {
|
||||||
|
|
||||||
enter-section "Typstyle checking" "./run-fmt.sh --check src/lib.typ" 0
|
enter-section "Typstyle checking" "./run-fmt.sh --check src/lib.typ" 0
|
||||||
enter-section "BUILD: ABB code theme" "./generate-theme.sh" 0
|
enter-section "BUILD: ABB code theme" "./generate-theme.sh" 0
|
||||||
enter-section "Compiling template..." "typst compile template/main.typ --root . example.pdf"
|
enter-section "Compiling template..." "typst compile template/main.typ --root . example.pdf" 0
|
||||||
enter-section "TEST: local template import" "typst compile tests/local-import/main.typ --root ."
|
enter-section "TEST: local template import" "typst compile tests/local-import/main.typ --root ." 0
|
||||||
enter-section "TEST: invalid config case 1" "typst compile tests/invalid-config/test-case-1.typ --root ." "should fail"
|
enter-section "TEST: invalid config case 1" "typst compile tests/invalid-config/test-case-1.typ --root ." 1
|
||||||
enter-section "TEST: invalid config case 2" "typst compile tests/invalid-config/test-case-2.typ --root ."
|
enter-section "TEST: invalid config case 2" "compile tests/invalid-config/test-case-2.typ" 0
|
||||||
enter-section "TEST: invalid config case 3" "typst compile tests/invalid-config/test-case-3.typ --root ." "should fail"
|
enter-section "TEST: invalid config case 3" "typst compile tests/invalid-config/test-case-3.typ --root ." 1
|
||||||
|
|
||||||
log "INFO" "CI completed successfully"
|
log "INFO" "CI completed successfully"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
function format() {
|
function format() {
|
||||||
# format file
|
# format file
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
let
|
let
|
||||||
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable";
|
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.05";
|
||||||
pkgs = import nixpkgs { config = {}; overlays = []; };
|
pkgs = import nixpkgs { config = {}; overlays = []; };
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
|
||||||
#import "../../src/lib.typ": dhbw-template
|
#import "../../src/lib.typ": dhbw-template
|
||||||
|
|
||||||
#show: dhbw-template.with((
|
#show: dhbw-template.with(
|
||||||
|
config: (
|
||||||
lang: none,
|
lang: none,
|
||||||
region: "en",
|
region: "en",
|
||||||
author: (
|
author: (
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
|
||||||
#import "../../src/lib.typ": dhbw-template
|
#import "../../src/lib.typ": dhbw-template
|
||||||
|
|
||||||
#show: dhbw-template.with((
|
#show: dhbw-template.with(
|
||||||
|
config: (
|
||||||
lang: "en",
|
lang: "en",
|
||||||
this-key-is-not-in-config: "Ha Ha",
|
this-key-is-not-in-config: "Ha Ha",
|
||||||
region: "en",
|
region: "en",
|
||||||
|
@ -14,8 +15,7 @@
|
||||||
university: "DHBW Mannheim",
|
university: "DHBW Mannheim",
|
||||||
company: "ABB AG",
|
company: "ABB AG",
|
||||||
supervisor: "Benny Goodman",
|
supervisor: "Benny Goodman",
|
||||||
matriculation-number: 123456789,
|
matriculation-number: 123456789),
|
||||||
),
|
|
||||||
thesis: (
|
thesis: (
|
||||||
title: "Unofficial ABB/DHBW Typst template",
|
title: "Unofficial ABB/DHBW Typst template",
|
||||||
subtitle: "for reports and thesises",
|
subtitle: "for reports and thesises",
|
||||||
|
@ -27,6 +27,4 @@
|
||||||
keywords: ( "IT", "other stuff" ),
|
keywords: ( "IT", "other stuff" ),
|
||||||
bibliography: none,
|
bibliography: none,
|
||||||
glossary: none,
|
glossary: none,
|
||||||
appendices: none,
|
appendices: none)))
|
||||||
),
|
|
||||||
))
|
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
|
|
||||||
#import "../../src/lib.typ": dhbw-template
|
#import "../../src/lib.typ": dhbw-template
|
||||||
|
|
||||||
#show: dhbw-template.with((
|
#show: dhbw-template.with(
|
||||||
|
config: (
|
||||||
lang: "en",
|
lang: "en",
|
||||||
region: "en",
|
region: "en",
|
||||||
author: (
|
author: (
|
||||||
university: "DHBW Mannheim",
|
university: "DHBW Mannheim",
|
||||||
company: "ABB AG",
|
company: "ABB AG",
|
||||||
supervisor: none,
|
supervisor: none,
|
||||||
matriculation-number: 123456789,
|
matriculation-number: 123456789),
|
||||||
),
|
|
||||||
thesis: (
|
thesis: (
|
||||||
title: "Unofficial ABB/DHBW Typst template",
|
title: "Unofficial ABB/DHBW Typst template",
|
||||||
subtitle: "for reports and thesises",
|
subtitle: "for reports and thesises",
|
||||||
|
@ -21,6 +21,4 @@
|
||||||
keywords: ( "IT", "other stuff" ),
|
keywords: ( "IT", "other stuff" ),
|
||||||
bibliography: none,
|
bibliography: none,
|
||||||
glossary: none,
|
glossary: none,
|
||||||
appendices: none,
|
appendices: none)))
|
||||||
),
|
|
||||||
))
|
|
||||||
|
|
|
@ -1,15 +1,20 @@
|
||||||
|
|
||||||
#import "../../src/lib.typ": dhbw-template
|
#import "../../src/lib.typ": dhbw-template
|
||||||
|
|
||||||
#show: dhbw-template.with((
|
#show: dhbw-template.with(
|
||||||
|
config: (
|
||||||
lang: "en",
|
lang: "en",
|
||||||
region: "en",
|
region: "en",
|
||||||
author: (
|
author: (
|
||||||
|
name: "Sven Vogel",
|
||||||
|
semester: 4,
|
||||||
|
program: "Informationtechnology",
|
||||||
|
course: "TINF19IT1",
|
||||||
|
faculty: "Technik",
|
||||||
university: "DHBW Mannheim",
|
university: "DHBW Mannheim",
|
||||||
company: "ABB AG",
|
company: "ABB AG",
|
||||||
supervisor: "Vivaldi",
|
supervisor: "Benny Goodman",
|
||||||
matriculation-number: 123456789,
|
matriculation-number: 123456789),
|
||||||
),
|
|
||||||
thesis: (
|
thesis: (
|
||||||
title: "Unofficial ABB/DHBW Typst template",
|
title: "Unofficial ABB/DHBW Typst template",
|
||||||
subtitle: "for reports and thesises",
|
subtitle: "for reports and thesises",
|
||||||
|
@ -21,6 +26,4 @@
|
||||||
keywords: ( "IT", "other stuff" ),
|
keywords: ( "IT", "other stuff" ),
|
||||||
bibliography: none,
|
bibliography: none,
|
||||||
glossary: none,
|
glossary: none,
|
||||||
appendices: none,
|
appendices: none)))
|
||||||
),
|
|
||||||
))
|
|
||||||
|
|
Loading…
Reference in New Issue