blob: b3c802d8c2511b4e2242e02910b92d5d9c59246a [file] [log] [blame]
stages:
- test
- build
default:
image: node:18
cache:
key:
files:
- package-lock.json
paths:
- node_modules/
test:
stage: test
script:
- npm ci
- npm test
build:
stage: build
script:
- npm ci
- mkdir -p bin/linux bin/macos bin/win
- npm run pkg-linux
- npm run pkg-macos
- npm run pkg-win
artifacts:
name: "conllu-gender-${CI_COMMIT_TAG:-${CI_COMMIT_SHORT_SHA}}"
paths:
- bin/linux/conllu-gender
- bin/macos/conllu-gender
- bin/win/conllu-gender.exe
expire_in: 4 weeks
rules:
- if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "web"