Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create style_check.yaml #2803

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

update style_check.yaml

ccfd55a
Select commit
Loading
Failed to load commit list.
Open

Create style_check.yaml #2803

update style_check.yaml
ccfd55a
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request failed Apr 24, 2024 in 1m 52s

Build Failed

The build failed. This is a change from the previous build, which passed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #2803 Create style_check.yaml.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build has two jobs, running in parallel.

Job Python OS State
6345.1 3.8 Linux failed
6345.2 3.9 Linux failed

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Xenial)
Python Versions 3.8, 3.9
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "python": [
    "3.8",
    "3.9"
  ],
  "branches": {
    "only": [
      "master"
    ]
  },
  "cache": {
    "directories": [
      "$HOME/.cache/pip"
    ]
  },
  "sudo": false,
  "install": [
    "pip install -r requirements-travis.txt"
  ],
  "script": [
    "inspekt checkall --disable-lint W,R,C,E1002,E1101,E1103,E1120,F0401,I0011,E0203,E711,W605,E721 --no-license-check",
    "inspekt indent",
    "inspekt style",
    "error=\"\"\nfor COMMIT in $(git rev-list $TRAVIS_COMMIT_RANGE); do\n    echo\n    echo \"-----< $(git log -1 --oneline $COMMIT) >-----\"\n    msg=$(git show -s --format=%B $COMMIT)\n    # Skip merge commits\n    if [ $(echo \"${msg::4}\") == 'Merg' ]\n    then\n        continue\n    fi\n    # Skip some commits which make travis fail due to commit message\n    list='8fd5b57 840e774 c35ffeb'\n    for item in $list\n    do\n    if [ \"$COMMIT\" == \"$item\" ]; then\n      echo \"In the list\"\n      continue\n    fi\n    done  \n    # Test commit message size\n    if [ $(echo \"$msg\" | wc -l) -ge 5 ]\n    then\n        echo \"OK: Commit message size.\"\n    else\n        echo \"ERR: Commit message is too short (less than 5 lines).\"\n        echo \"     Here a minimal template:\"\n        echo \"     ------------------------------------\"\n        echo \"     header          <- Limited to 50 characters. No period.\"\n        echo \"                     <- Blank line\"\n        echo \"     message         <- Any number of lines, limited to 72 characters per line.\"\n        echo \"                     <- Blank line\"\n        echo \"     Signed-off-by:  <- Signature (created by git commit -s)\"\n        echo \"     ------------------------------------\"\n        error=true\n    fi\n    # Test commit message signature\n    if echo \"$msg\" | grep -q 'Signed-off-by:'\n    then\n        echo \"OK: 'Signed-off-by:' present.\"\n    else\n        echo \"ERR: 'Signed-off-by:' not found (use '-s' in 'git commit').\"\n        error=true\n    fi\ndone\n# Look for errors\nif [ \"$error\" ]; then\n    echo\n    echo \"Incremental smokecheck failed.\"\n    exit 1\nfi"
  ]
}