Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Add .gitlab-ci.yml-compatible continuous integration configuration #8316

Merged
merged 3 commits into from Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions build/contrib/gitlab/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
lint:
allow_failure: true
image: node:buster
before_script:
- npm ci --ignore-scripts
script:
- npm run check-types
- npm run check

test:
image: node:buster
before_script:
- npm ci --ignore-scripts
script:
- npm run test:speed
7 changes: 7 additions & 0 deletions build/contrib/gitlab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# GitLab CI/CD configuration for Mattermost

The [.gitlab-ci.yml](./.gitlab-ci.yml) file in this directory provides a [GitLab CI/CD configuration file](https://docs.gitlab.com/ee/ci/yaml/gitlab_ci_yaml.html) that can be used to run linting and unit testing for the Mattermost application.

## Usage

To configure your GitLab instance to use this configuration file (and without having to move it to the base directory in this git repository), you can configure the [`CI_CONFIG_PATH` predefined variable](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) for the repository in GitLab with the configuration file path (`build/contrib/gitlab/.gitlab-ci.yml`).