debian-mirror-gitlab/lib/gitlab/ci/templates/Nodejs.gitlab-ci.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.2 KiB
YAML
Raw Normal View History

2022-08-13 15:12:31 +05:30
# You can copy and paste this template into a new `.gitlab-ci.yml` file.
# You should not add this template to an existing `.gitlab-ci.yml` file by using the `include:` keyword.
#
2021-09-30 23:02:18 +05:30
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Nodejs.gitlab-ci.yml
2016-06-22 15:30:34 +05:30
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:latest
# Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in.
2022-07-23 23:45:48 +05:30
# Check out: https://docs.gitlab.com/ee/ci/services/index.html
2016-06-22 15:30:34 +05:30
services:
- mysql:latest
- redis:latest
- postgres:latest
# This folder is cached between builds
2021-10-27 15:23:28 +05:30
# https://docs.gitlab.com/ee/ci/yaml/index.html#cache
2016-06-22 15:30:34 +05:30
cache:
paths:
2019-09-04 21:01:54 +05:30
- node_modules/
2016-06-22 15:30:34 +05:30
test_async:
script:
2019-09-04 21:01:54 +05:30
- npm install
- node ./specs/start.js ./specs/async.spec.js
2016-06-22 15:30:34 +05:30
test_db:
script:
2019-09-04 21:01:54 +05:30
- npm install
- node ./specs/start.js ./specs/db-postgres.spec.js
2022-11-25 23:54:43 +05:30
deploy:
stage: deploy
script: echo "Define your deployment script!"
environment: production