diff --git a/run-ci.sh b/run-ci.sh index a25ddb3..84df72b 100755 --- a/run-ci.sh +++ b/run-ci.sh @@ -45,9 +45,5 @@ function enter-section() { enter-section "Typstyle checking" "./run-fmt.sh --check src/lib.typ" 0 enter-section "Compiling template..." "typst compile template/main.typ --root . --font-path fonts example.pdf" -enter-section "TEST: local template import" "typst compile tests/local-import/main.typ --root . --font-path fonts" -enter-section "TEST: invalid config case 1" "typst compile tests/invalid-config/test-case-1.typ --root . --font-path fonts" "should fail" -enter-section "TEST: invalid config case 2" "typst compile tests/invalid-config/test-case-2.typ --root . --font-path fonts" -enter-section "TEST: invalid config case 3" "typst compile tests/invalid-config/test-case-3.typ --root . --font-path fonts" "should fail" log "INFO" "CI completed successfully" diff --git a/tests/invalid-config/test-case-1.typ b/tests/invalid-config/test-case-1.typ deleted file mode 100644 index 5059966..0000000 --- a/tests/invalid-config/test-case-1.typ +++ /dev/null @@ -1,28 +0,0 @@ - -#import "../../src/lib.typ": dhbw-template - -#show: dhbw-template.with(( - lang: none, - region: "en", - author: ( - name: "Sven Vogel", - semester: 4, - program: "Informationtechnology", - course: "TINF19IT1", - faculty: "Technik", - university: "DHBW Mannheim", - company: "ABB AG", - supervisor: "Benny Goodman", - matriculation-number: 123456789), - thesis: ( - title: "Unofficial ABB/DHBW Typst template", - subtitle: "for reports and thesises", - submission-date: "23rd march 2020", - timeframe: "1st january 2020 - 20th march 2020", - kind: "T2000", - summary: none, - abstract: none, - keywords: ( "IT", "other stuff" ), - bibliography: none, - glossary: none, - appendices: none))) diff --git a/tests/invalid-config/test-case-2.typ b/tests/invalid-config/test-case-2.typ deleted file mode 100644 index 8a6eb26..0000000 --- a/tests/invalid-config/test-case-2.typ +++ /dev/null @@ -1,34 +0,0 @@ - -#import "../../src/lib.typ": dhbw-template - -#show: dhbw-template.with(( - lang: "en", - this-key-is-not-in-config: "Ha Ha", - region: "en", - author: ( - name: "Sven Vogel", - semester: 4, - program: "Informationtechnology", - course: "TINF19IT1", - faculty: "Technik", - university: "DHBW Mannheim", - company: "ABB AG", - supervisor: "Benny Goodman", - matriculation-number: 123456789, - ), - thesis: ( - title: "Unofficial ABB/DHBW Typst template", - subtitle: "for reports and thesises", - submission-date: "23rd march 2020", - timeframe: "1st january 2020 - 20th march 2020", - kind: "T2000", - summary: none, - abstract: none, - keywords: ("IT", "other stuff"), - bibliography: none, - glossary: none, - appendices: none, - ), -)) - -= Heading diff --git a/tests/invalid-config/test-case-3.typ b/tests/invalid-config/test-case-3.typ deleted file mode 100644 index f274b60..0000000 --- a/tests/invalid-config/test-case-3.typ +++ /dev/null @@ -1,26 +0,0 @@ - -#import "../../src/lib.typ": dhbw-template - -#show: dhbw-template.with(( - lang: "en", - region: "en", - author: ( - university: "DHBW Mannheim", - company: "ABB AG", - supervisor: none, - matriculation-number: 123456789, - ), - thesis: ( - title: "Unofficial ABB/DHBW Typst template", - subtitle: "for reports and thesises", - submission-date: "23rd march 2020", - timeframe: "1st january 2020 - 20th march 2020", - kind: "T2000", - summary: none, - abstract: none, - keywords: ("IT", "other stuff"), - bibliography: none, - glossary: none, - appendices: none, - ), -)) diff --git a/tests/local-import/main.typ b/tests/local-import/main.typ deleted file mode 100644 index dd8fb27..0000000 --- a/tests/local-import/main.typ +++ /dev/null @@ -1,30 +0,0 @@ - -#import "../../src/lib.typ": dhbw-template - -#show: dhbw-template.with(( - lang: "en", - region: "en", - author: ( - name: "Sven Vogel", - semester: 4, - program: "Informationtechnology", - course: "TINF19IT1", - faculty: "Technik", - university: "DHBW Mannheim", - company: "ABB AG", - supervisor: "Benny Goodman", - matriculation-number: 123456789), - thesis: ( - title: "Unofficial ABB/DHBW Typst template", - subtitle: "for reports and thesises", - submission-date: "23rd march 2020", - timeframe: "1st january 2020 - 20th march 2020", - kind: "T2000", - summary: none, - abstract: none, - keywords: ( "IT", "other stuff" ), - bibliography: none, - glossary: none, - appendices: none))) - -= Heading