https://github.com/grid-control/grid-control
Raw File
Tip revision: 45ecff8f60f6f87ce384d220b39dd48ab8468bb1 authored by Johannes Lange on 04 October 2019, 10:25:05 UTC
codeclimate: increased similar/identical code thresholds (default 32)
Tip revision: 45ecff8
.travis.yml
os: linux
language: python
python:
  - 2.7
  - 3.6
env:
  - GC_WRAPPER='coverage run -a'
matrix:
  include:
  - python: pypy
    env: GC_WRAPPER=''
  - dist: trusty
    python: 2.6
  - dist: trusty
    python: 3.2
before_install: |
  if [ "$TRAVIS_OS_NAME" == "osx" ]; then
    brew update > /dev/null
    brew install openssl readline > /dev/null
    (brew outdated pyenv || brew upgrade pyenv) > /dev/null
    export PYENV_VERSION=$PYTHON
    pyenv install $PYTHON
    export PATH="/Users/travis/.pyenv/shims:${PATH}"
    python --version
  fi
  pip install 'coverage<4' > /dev/null
  pip install requests > /dev/null
script:
  - echo 'travis_fold:start:gc_env_setup'
  - ./setup.py install > setup.log 2>&1 || cat setup.log
  - rm -rf packages
  - export GC_SCRIPT="/$(grep gridcontrol setup.log | cut -d "/" -f 2-)/gridcontrol"
  - export GC_TEST_BRANCH="$TRAVIS_BRANCH"
  - if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then export GC_TEST_BRANCH="PR$TRAVIS_PULL_REQUEST"; fi
  - if ! git ls-remote --exit-code --heads https://github.com/grid-control/testsuite.git $GC_TEST_BRANCH; then export GC_TEST_BRANCH="testing"; fi
  - echo "GC_TEST_BRANCH=$GC_TEST_BRANCH"
  - git clone --depth 1 https://github.com/grid-control/testsuite.git -b $GC_TEST_BRANCH testsuite
  - ls
  - echo 'travis_fold:end:gc_env_setup'
  - ./testsuite/test_all.sh "$GC_WRAPPER" "$GC_SCRIPT"
back to top