.travis.yml 1.2 KB
Newer Older
1
language: python
2

3
python:
4 5
    - "2.7_with_system_site_packages"
    - "2.6"
6 7 8 9 10

branches:
    only:
        - master

11 12 13 14
cache:
    directories:
        - $HOME/.cache/pip

15 16
sudo: false

17
install:
18
    - pip install -r requirements-travis.txt
19
    - if [ $TRAVIS_PYTHON_VERSION == '2.6' ]; then pip install -r requirements-travis-python26.txt; fi
20 21 22

script:
    - inspekt lint
23
    - inspekt indent
24
    - inspekt style
25
    - ./selftests/cyclical_deps avocado
26
    - ./selftests/modules_boundaries
27
    - python setup.py develop
28
    - ./selftests/run
29
    - ./selftests/check_tmp_dirs
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
    - |
        ERR=""
        MASTER=$(git rev-parse origin/master)
        echo Master is $MASTER
        for COMMIT in $(git rev-list origin..HEAD); do
            echo
            echo "--------------------< $(git log -1 --oneline $COMMIT) >--------------------"
            echo
            echo
            git checkout $COMMIT || ERR=$(echo -e "$ERR\nUnable to checkout $(git log -1 --oneline $COMMIT)")
            python setup.py develop && make smokecheck || ERR=$(echo -e "$ERR\n$(git log -1 --oneline)")
        done
        if [ "$ERR" ]; then
            echo
            echo "Incremental smokecheck failed: $ERR"
            exit -1
        fi