https://github.com/grid-control/grid-control
Raw File
Tip revision: 1281bdcb8fac585f3716dd1d967e7081637c5d63 authored by Johannes Lange on 22 August 2019, 12:40:53 UTC
FAILS: testing with python3.7
Tip revision: 1281bdc
.travis.yml
os: linux
language: python
python:
  - 2.7
  - 3.6
  - 3.7
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