2022-11-15 15:31:20 +01:00
|
|
|
default:
|
|
|
|
image: node:lts
|
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2022-11-15 15:36:42 +01:00
|
|
|
# - test
|
2022-11-15 15:31:20 +01:00
|
|
|
|
|
|
|
build:
|
|
|
|
stage: build
|
2022-11-15 15:51:56 +01:00
|
|
|
except:
|
|
|
|
- schedules
|
|
|
|
- web
|
2022-11-15 15:31:20 +01:00
|
|
|
before_script:
|
|
|
|
- npm ci
|
|
|
|
script:
|
2022-11-15 15:34:48 +01:00
|
|
|
- rm -f .env
|
|
|
|
- ln -s example.env .env
|
2022-11-15 15:31:20 +01:00
|
|
|
- npm run build
|
2023-02-24 06:40:32 +01:00
|
|
|
#
|
2022-11-15 15:36:42 +01:00
|
|
|
# test:
|
|
|
|
# stage: test
|
2022-11-15 15:51:56 +01:00
|
|
|
# except:
|
|
|
|
# - schedules
|
|
|
|
# - web
|
2022-11-15 15:36:42 +01:00
|
|
|
# before_script:
|
|
|
|
# - npm ci
|
|
|
|
# script:
|
|
|
|
# - rm -f .env
|
|
|
|
# - ln -s example.env .env
|
|
|
|
# - npm run test
|