forked from grid-control/grid-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (40 loc) · 1.34 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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"