1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-08 17:54:40 +00:00

Refactored to a single CI task - with a single artifact

This commit is contained in:
jespergravgaard 2018-09-30 15:51:15 +02:00
parent aee3c197da
commit 66b1249336
6 changed files with 31 additions and 38 deletions

View File

@ -1,20 +1,13 @@
image: maven:3-jdk-8 image: maven:3-jdk-8
compile: release:
stage: build stage: build
script: script:
- "mvn package" - "mvn package"
artifacts:
expire_in: 5mins
paths:
- target/kickc-release.zip
release:
stage: deploy
script:
- "ls target" - "ls target"
- "unzip -d target/release target/kickc-release.zip" - "unzip -d target/release target/kickc-release.zip"
- "mv target/release/kickc/* ." - "mv target/release/kickc/* ."
- "cat target/site/jacoco/index.html"
artifacts: artifacts:
name: kickc_${CI_BUILD_REF_NAME} name: kickc_${CI_BUILD_REF_NAME}
paths: paths:

View File

@ -16,8 +16,8 @@ kickasm(pc YSIN) {{
}} }}
kickasm(pc SPRITE, resource "balloon.png") {{ kickasm(pc SPRITE, resource "balloon.png") {{
.var pic = LoadPicture("balloon.png", List().add($000000, $ffffff)) .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
.for (var y=0; y<21; y++) .for (var y=0; y<21; y++)
.for (var x=0;x<3; x++) .for (var x=0;x<3; x++)
.byte pic.getSinglecolorByte(x,y) .byte pic.getSinglecolorByte(x,y)
}} }}

View File

@ -263,7 +263,7 @@ plexInit: {
.pc = SPRITE "Inline" .pc = SPRITE "Inline"
.var pic = LoadPicture("balloon.png", List().add($000000, $ffffff)) .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
.for (var y=0; y<21; y++) .for (var y=0; y<21; y++)
.for (var x=0;x<3; x++) .for (var x=0;x<3; x++)
.byte pic.getSinglecolorByte(x,y) .byte pic.getSinglecolorByte(x,y)

View File

@ -9,7 +9,7 @@
.byte round(min+(ampl/2)+(ampl/2)*sin(toRadians(360*i/256))) .byte round(min+(ampl/2)+(ampl/2)*sin(toRadians(360*i/256)))
}} }}
kickasm(location (const byte*) SPRITE#0) {{ .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff)) kickasm(location (const byte*) SPRITE#0) {{ .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
.for (var y=0; y<21; y++) .for (var y=0; y<21; y++)
.for (var x=0;x<3; x++) .for (var x=0;x<3; x++)
.byte pic.getSinglecolorByte(x,y) .byte pic.getSinglecolorByte(x,y)
}} }}

View File

@ -260,7 +260,7 @@ plexShowSprite::@return: scope:[plexShowSprite] from plexShowSprite::@3 plexSho
.byte round(min+(ampl/2)+(ampl/2)*sin(toRadians(360*i/256))) .byte round(min+(ampl/2)+(ampl/2)*sin(toRadians(360*i/256)))
}} }}
kickasm(location (byte*) SPRITE#0) {{ .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff)) kickasm(location (byte*) SPRITE#0) {{ .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
.for (var y=0; y<21; y++) .for (var y=0; y<21; y++)
.for (var x=0;x<3; x++) .for (var x=0;x<3; x++)
.byte pic.getSinglecolorByte(x,y) .byte pic.getSinglecolorByte(x,y)
}} }}
@ -1721,7 +1721,7 @@ FINAL CONTROL FLOW GRAPH
.byte round(min+(ampl/2)+(ampl/2)*sin(toRadians(360*i/256))) .byte round(min+(ampl/2)+(ampl/2)*sin(toRadians(360*i/256)))
}} }}
kickasm(location (const byte*) SPRITE#0) {{ .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff)) kickasm(location (const byte*) SPRITE#0) {{ .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
.for (var y=0; y<21; y++) .for (var y=0; y<21; y++)
.for (var x=0;x<3; x++) .for (var x=0;x<3; x++)
.byte pic.getSinglecolorByte(x,y) .byte pic.getSinglecolorByte(x,y)
}} }}
@ -2748,7 +2748,7 @@ plexInit: {
.pc = SPRITE "Inline" .pc = SPRITE "Inline"
.var pic = LoadPicture("balloon.png", List().add($000000, $ffffff)) .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
.for (var y=0; y<21; y++) .for (var y=0; y<21; y++)
.for (var x=0;x<3; x++) .for (var x=0;x<3; x++)
.byte pic.getSinglecolorByte(x,y) .byte pic.getSinglecolorByte(x,y)
@ -3500,7 +3500,7 @@ plexInit: {
.pc = SPRITE "Inline" .pc = SPRITE "Inline"
.var pic = LoadPicture("balloon.png", List().add($000000, $ffffff)) .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
.for (var y=0; y<21; y++) .for (var y=0; y<21; y++)
.for (var x=0;x<3; x++) .for (var x=0;x<3; x++)
.byte pic.getSinglecolorByte(x,y) .byte pic.getSinglecolorByte(x,y)
@ -4297,7 +4297,7 @@ plexInit: {
.pc = SPRITE "Inline" .pc = SPRITE "Inline"
.var pic = LoadPicture("balloon.png", List().add($000000, $ffffff)) .var pic = LoadPicture("balloon.png", List().add($000000, $ffffff))
.for (var y=0; y<21; y++) .for (var y=0; y<21; y++)
.for (var x=0;x<3; x++) .for (var x=0;x<3; x++)
.byte pic.getSinglecolorByte(x,y) .byte pic.getSinglecolorByte(x,y)