Skip to content

Commit

Permalink
Added Pylint checker to Travis when run in manual-ci-run
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Oct 5, 2017
1 parent 1e408bd commit afc01b9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 22 deletions.
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,18 @@ matrix:

before_install:
- if [[ "$TRAVIS_BRANCH" == "manual-ci-run" ]]; then
echo "Rebasing manual-ci-run to master...";
echo "git fetch origin master";
git fetch origin master;
echo "git branch master FETCH_HEAD";
git branch master FETCH_HEAD;
echo "git branch -av";
git branch -av;
echo "git rebase master";
git rebase master;
export _NEED_REBASE=true;
fi
- if [[ -n $_NEED_REBASE ]]; then git fetch origin master; fi
- if [[ -n $_NEED_REBASE ]]; then git branch master FETCH_HEAD; fi
- if [[ -n $_NEED_REBASE ]]; then git rebase master; fi
- git branch -av

# commands to install dependencies
install:
- if [[ "$TRAVIS_BRANCH" == "manual-ci-run" || "$TRAVIS_PULL_REQUEST_BRANCH" == "manual-ci-run" ]]; then
export _MANUAL_CI_RUN=true;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "${PYTHON:0:1}" == "2" ]]; then
export PYTHON_CMD=python;
Expand Down Expand Up @@ -125,10 +124,11 @@ install:

# commands to run builds & tests
script:
- make build
- make builddoc
- if [[ -n $_MANUAL_CI_RUN ]]; then make build; fi
- if [[ -n $_MANUAL_CI_RUN ]]; then make builddoc; fi
- make check
- if [[ -n $_MANUAL_CI_RUN ]]; then make pylint; fi
- make test

after_success:
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi
- if [[ -z $_MANUAL_CI_RUN && $TRAVIS_PYTHON_VERSION == 2.7 ]]; then coveralls; fi
19 changes: 9 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,14 @@ environment:

install:

- if %APPVEYOR_REPO_BRANCH%.==manual-ci-run. (
echo "Rebasing manual-ci-run to master..."&
echo "git fetch origin master"&
git fetch origin master&
echo "git branch master FETCH_HEAD"&
git branch master FETCH_HEAD&
echo "git branch -av"&
git branch -av&
echo "git rebase master"&
git rebase master)
- if %APPVEYOR_REPO_BRANCH%.==manual-ci-run. set _NEED_REBASE=true
- if %_NEED_REBASE%.==true. git fetch origin master
- if %_NEED_REBASE%.==true. git branch master FETCH_HEAD
- if %_NEED_REBASE%.==true. git rebase master
- git branch -av

- if %APPVEYOR_REPO_BRANCH%.==manual-ci-run. set _MANUAL_CI_RUN=true
- if %APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH%.==manual-ci-run. set _MANUAL_CI_RUN=true

# Verify that the commands used in this file are available
- where where
Expand All @@ -78,6 +76,7 @@ install:
- choco source list
- dir C:\
- dir
- env |sort

# Remove Python 2.7 from PATH.
# Note that YAML interprets some characters in a special way (including '!' and '#')
Expand Down

0 comments on commit afc01b9

Please sign in to comment.