Mentions légales du service

Skip to content
Snippets Groups Projects

Ci test

Merged PAPERMAN Charles requested to merge ci-test into master
2 files
+ 20
54
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 17
45
stages: # List of stages for jobs, and their order of execution
stages: # List of stages for jobs, and their order of execution
- build
- build
- lint
- test
- compile
- compile
- release
build-job: # This job runs in the build stage, which runs first.
build-job: # This job runs in the build stage, which runs first.
stage: build
stage: build
@@ -16,51 +14,25 @@ build-job: # This job runs in the build stage, which runs first.
@@ -16,51 +14,25 @@ build-job: # This job runs in the build stage, which runs first.
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
- docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY"
- docker push "$CI_REGISTRY_IMAGE/vizibridge_cont"
- docker push "$CI_REGISTRY_IMAGE/vizibridge_cont"
lint:
compile:
stage: lint
stage: compile
tags:
- ci.inria.fr
- medium
image: "$CI_REGISTRY_IMAGE/vizibridge_cont"
script:
- ruff check python/vizibridge/
- ruff format --check --diff python/vizibridge/
- cargo fmt --check -v
type-checking:
stage: test
tags:
- ci.inria.fr
- medium
image: "$CI_REGISTRY_IMAGE/vizibridge_cont"
script:
- python3 -m mypy --install-types --non-interactive vizibridge/
test-rust:
stage: test
tags:
tags:
- ci.inria.fr
- ci.inria.fr
- medium
- medium
image: "$CI_REGISTRY_IMAGE/vizibridge_cont"
image: "$CI_REGISTRY_IMAGE/vizibridge_cont"
script:
script:
- cargo test
- maturin build --release
artifacts:
test-python:
paths:
stage: test
- ./target/wheels/*
tags:
- ci.inria.fr
release_job:
- medium
stage: release
image: "$CI_REGISTRY_IMAGE/vizibridge_cont"
image: registry.gitlab.com/gitlab-org/release-cli:latest
 
rules:
 
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
script:
- pytest --doctest-modules --cov=vizibridge python/vizibridge
- echo "running release_job"
coverage: '/TOTAL.*\s+(\d+%)$/'
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
compile:
description: '$CI_COMMIT_TAG'
stage: compile
tags:
- ci.inria.fr
- medium
image: "$CI_REGISTRY_IMAGE/vizibridge_cont"
script:
- maturin build --release
Loading