Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Knowledge Space WP Plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alg
Knowledge Space WP Plugin
Commits
6db560f4
Commit
6db560f4
authored
3 years ago
by
Matthias Konitzny
Browse files
Options
Downloads
Patches
Plain Diff
Gitlab ci now supports automatic builds.
parent
1bac070c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#49518
failed
3 years ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+20
-19
20 additions, 19 deletions
.gitlab-ci.yml
with
20 additions
and
19 deletions
.gitlab-ci.yml
+
20
−
19
View file @
6db560f4
...
...
@@ -16,34 +16,35 @@
stages
:
# List of stages for jobs, and their order of execution
-
test
-
build
-
deploy
image
:
node:latest
cache
:
key
:
$CI_COMMIT_REF_SLUG
paths
:
-
.npm/
build-job
:
# This job runs in the build stage, which runs first.
stage
:
build
script
:
-
echo "Compiling the code..."
-
echo "Compile complete."
unit-test-job
:
# This job runs in the test stage.
stage
:
test
# It only starts when the job in the build stage completes successfully.
script
:
-
echo "Running unit tests... This will take about 60 seconds."
-
sleep
60
-
echo "Code coverage is 90%"
before_script
:
-
npm ci --cache .npm --prefer-offline
lint-test-job
:
stage
:
test
script
:
-
echo "Linting code with eslint."
-
npm i eslint
#
- npm i eslint
-
node_modules/eslint/bin/eslint.js .
deploy-job
:
# This job runs in the deploy stage.
stage
:
deploy
# It only runs when *both* jobs in the test stage complete successfully.
build-job
:
# This job runs in the build stage, which runs first.
stage
:
build
script
:
-
echo "Deploying application..."
-
echo "Application successfully deployed."
-
npm run build
artifacts
:
paths
:
-
release/knowledge-space.zip
# deploy-job: # This job runs in the deploy stage.
# stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
# script:
# - echo "Deploying application..."
# - echo "Application successfully deployed."
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment