Skip to content
Snippets Groups Projects
Commit b3e02403 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[data/gitlab-ci] Split linux/docker setup to avoid if conditions on before_script [ci skip]

parent 84615413
No related branches found
No related tags found
1 merge request!334Fix changed runner tags
Pipeline #66522 skipped
...@@ -7,12 +7,12 @@ repos: ...@@ -7,12 +7,12 @@ repos:
- id: isort - id: isort
args: [--settings-path, "pyproject.toml"] args: [--settings-path, "pyproject.toml"]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.3.0 rev: 22.10.0
hooks: hooks:
- id: black - id: black
exclude: bob/devtools/templates/setup.py exclude: bob/devtools/templates/setup.py
- repo: https://gitlab.com/pycqa/flake8 - repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1 rev: 3.9.2
hooks: hooks:
- id: flake8 - id: flake8
exclude: | exclude: |
...@@ -21,7 +21,7 @@ repos: ...@@ -21,7 +21,7 @@ repos:
deps/bob-devel/run_test.py deps/bob-devel/run_test.py
)$ )$
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0 rev: v4.3.0
hooks: hooks:
- id: check-ast - id: check-ast
exclude: bob/devtools/templates/setup.py exclude: bob/devtools/templates/setup.py
...@@ -33,4 +33,5 @@ repos: ...@@ -33,4 +33,5 @@ repos:
- id: check-added-large-files - id: check-added-large-files
exclude: bob/devtools/templates/setup.py exclude: bob/devtools/templates/setup.py
- id: check-yaml - id: check-yaml
args: ['--unsafe']
exclude: .*/meta.*.yaml exclude: .*/meta.*.yaml
...@@ -25,9 +25,6 @@ stages: ...@@ -25,9 +25,6 @@ stages:
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
# for conda inspect during builds (on macos) # for conda inspect during builds (on macos)
- conda activate base - conda activate base
- echo "CI_RUNNER_TAGS = '${CI_RUNNER_TAGS}'"
- if [[ "$CI_RUNNER_TAGS" =~ ^.*bob.*docker\|docker.*bob.*$ ]]; then echo "YES!!"; git config --global --add safe.directory ${CI_PROJECT_DIR}; fi
- bdt ci check -vv
cache: cache:
paths: paths:
- miniconda.sh - miniconda.sh
...@@ -61,6 +58,10 @@ stages: ...@@ -61,6 +58,10 @@ stages:
# make sure we use the same image as conda-forge: # make sure we use the same image as conda-forge:
# https://github.com/conda-forge/conda-forge-pinning-feedstock/blob/main/recipe/conda_build_config.yaml # https://github.com/conda-forge/conda-forge-pinning-feedstock/blob/main/recipe/conda_build_config.yaml
image: quay.io/condaforge/linux-anvil-cos7-x86_64 image: quay.io/condaforge/linux-anvil-cos7-x86_64
before_script:
- !reference [.bootstrap, before_script]
- git config --global --add safe.directory ${CI_PROJECT_DIR}
- bdt ci check -vv
artifacts: artifacts:
paths: paths:
- ${CONDA_ROOT}/conda-bld/linux-64/*.conda - ${CONDA_ROOT}/conda-bld/linux-64/*.conda
...@@ -76,6 +77,9 @@ stages: ...@@ -76,6 +77,9 @@ stages:
- bob - bob
- macos - macos
- intel - intel
before_script:
- !reference [.bootstrap, before_script]
- bdt ci check -vv
artifacts: artifacts:
paths: paths:
- ${CONDA_ROOT}/conda-bld/osx-64/*.conda - ${CONDA_ROOT}/conda-bld/osx-64/*.conda
...@@ -88,6 +92,9 @@ stages: ...@@ -88,6 +92,9 @@ stages:
- bob - bob
- macos - macos
- arm - arm
before_script:
- !reference [.bootstrap, before_script]
- bdt ci check -vv
artifacts: artifacts:
paths: paths:
- ${CONDA_ROOT}/conda-bld/osx-arm64/*.conda - ${CONDA_ROOT}/conda-bld/osx-arm64/*.conda
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment