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

master
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