Commit 02b71458 authored by Jan Kiene's avatar Jan Kiene
Browse files

add stages and correct accumulated return value in format job

parent fe9746e9
Loading
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -6,6 +6,11 @@ default:
  interruptible: true


stages:
  - test
  - analyze


# script anchor for updating the codec repo
.get-codec-binaries: &get-codec-binaries
  - dir=$(pwd)
@@ -23,6 +28,7 @@ default:

# test the format conversion only
test_audiotools_convert:
  stage: test
  tags:
    - linux
  script:
@@ -30,6 +36,7 @@ test_audiotools_convert:

# run some test configs for item creation
test_processing:
  stage: test
  tags:
    - linux
  script:
@@ -41,6 +48,7 @@ test_processing:
# ------------------------------------

lint:
  stage: analyze
  tags:
    - linux
  allow_failure: true
@@ -48,10 +56,11 @@ lint:
    - flake8 --max-line-length 88 --extend-ignore=E203,E501,E741

format:
  stage: analyze
  tags:
    - linux
  allow_failure: true
  script:
    - isort --df --check --color --profile black . || ret_val_isort=$?
    - black --diff --check . || ret_val_black=$?
    - exit ! (( $ret_val_isort || $ret_val_black ))
    - ! (( $ret_val_isort || $ret_val_black ))