From 7ad4f42275cc4be45cf60618815b0a06c3b2e670 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 22 Jan 2021 23:23:25 +0200 Subject: [PATCH] CI templates. --- .gitlab-ci.yml | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a540ff2..02923be 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,31 +1,8 @@ --- -stages: - - test - -pre-commit: - stage: test - image: adarnimrod/ci-images:pre-commit - variables: - XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache" - script: - - pre-commit run --all-files - cache: - paths: - - .cache/ - -bats: - stage: test - image: alpine - before_script: - - apk add --update bats git - - git config --global user.email "you@example.com" - - git config --global user.name "Your Name" - script: - - bats tests/ | tee results.tap - after_script: - # yamllint disable-line rule:line-length - - wget https://github.com/cloudbees-oss/juxr/releases/download/0.1.22/juxr-x86_64-unknown-linux-musl.tar.gz -O - | tar -xz - - ./juxr tap --name bats --output results/ -- cat results.tap - artifacts: - reports: - junit: results/*.xml +include: + - project: shore/ci-templates + file: templates/pre-commit.yml + - project: shore/ci-templates + file: templates/pre-commit-repo.yml + - project: shore/ci-templates + file: templates/bats.yml -- GitLab