adjust .gitlab-ci.yml to also build app, remove Makefile dep

This commit is contained in:
Tomáš Mládek 2021-09-15 21:29:48 +02:00
parent 71af6bb680
commit cd76a36d99
3 changed files with 34 additions and 13 deletions

View file

@ -1,16 +1,34 @@
lint:
stage: test
stages:
- lint
- build
deno_lint:
stage: lint
image: denoland/deno:latest
script:
- cd cli
- make lint
- deno lint
build:
deno_build:
stage: build
image: denoland/deno:latest
script:
- cd cli
- make build
- deno compile --import-map ./import_map.json --allow-read --allow-write -o ../kollagen main.ts
artifacts:
paths:
- cli/kollagen
- kollagen
app_build:
stage: build
image: node:lts
script:
- node --version && npm --version
- make app
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- .npm
artifacts:
paths:
- dist

10
Makefile Normal file
View file

@ -0,0 +1,10 @@
all: deno_lint deno app
deno_lint:
cd cli && deno lint
deno:
cd cli && deno compile --import-map ./import_map.json --allow-read --allow-write -o ../kollagen main.ts
app:
npm ci --cache .npm --prefer-offline && npm run build

View file

@ -1,7 +0,0 @@
all: lint build
lint:
deno lint
build:
deno compile --import-map ./import_map.json --allow-read --allow-write -o kollagen main.ts