aboutsummaryrefslogtreecommitdiff
path: root/.build.yml
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-25 18:14:46 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-25 18:14:46 -0600
commite900d76aaaa171496d6fefa28ce07e3364500743 (patch)
tree857b37a84727fbd878354b1b14489b9bcc929a08 /.build.yml
parent743870947f61028c43bd414d5248fedf9bb72817 (diff)
downloadspec-e900d76aaaa171496d6fefa28ce07e3364500743.tar.gz
spec-e900d76aaaa171496d6fefa28ce07e3364500743.zip
just build with make
Diffstat (limited to '.build.yml')
-rw-r--r--.build.yml27
1 files changed, 7 insertions, 20 deletions
diff --git a/.build.yml b/.build.yml
index 17e4941..ec6df1a 100644
--- a/.build.yml
+++ b/.build.yml
@@ -8,27 +8,14 @@ sources:
environment:
files: "index vs-c tagged-unions types safety errors syntax LICENSE"
tasks:
- - build-html: |
+ - build: |
cd crowbar-spec
- i=0
- for file in $files
- do
- pandoc --defaults=etc/md.yml --number-offset=$i -o $file.html $file.md
- i=$((i+1))
- done
- tar czvf ../spec-html.tar.gz *.html
- - build-pdf: |
- cd crowbar-spec
- if git describe --tags --exact-match 2>/dev/null
- then
- metadata="subtitle=$(git describe --tags --exact-match)"
- else
- metadata="version=$(git log -1 --no-decorate --oneline)"
- fi
- pandoc --defaults=etc/pdf.yml -o ../spec.pdf -M "$metadata" $(echo $files | awk '{ for (i=1; i<=NF; i++) printf "%s.html ", $i }')
+ make
+ - compress: |
+ tar czf spec-html.tar.gz crowbar-spec/*.html
- test-page-count: |
- pages=$(pdfinfo spec.pdf | grep Pages | awk '{ print $2 }')
- test $pages -le 200
+ cd crowbar-spec
+ make check
artifacts:
- - spec.pdf
+ - crowbar-spec/spec.pdf
- spec-html.tar.gz