mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-22 23:09:49 -04:00
36 lines
665 B
YAML
36 lines
665 B
YAML
stages:
|
|
- report
|
|
- build
|
|
|
|
include:
|
|
- local: .gitlab/ci/docker.gitlab-ci.yml
|
|
|
|
report:
|
|
stage: report
|
|
image: node:14.5.0
|
|
script:
|
|
- npm install
|
|
- set +e
|
|
- npm outdated
|
|
- npm audit
|
|
- set -e
|
|
only:
|
|
- schedules
|
|
|
|
build:
|
|
stage: build
|
|
image: node:14.5.0
|
|
variables:
|
|
NODE_OPTIONS: "--max_old_space_size=2048"
|
|
before_script:
|
|
- export CI_JOB_TIMESTAMP="$(date -Iseconds)"
|
|
- export VERSION="$(cat VERSION)"
|
|
- ./.gitlab/ci/scripts/about.sh "$VERSION" "$CI_JOB_TIMESTAMP" "$CI_COMMIT_SHA" > ./src/about.json
|
|
script:
|
|
- npm ci
|
|
- npm run-script lint
|
|
- npm run-script build
|
|
artifacts:
|
|
paths:
|
|
- dist
|