Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 100 lines (92 sloc) 3.642 kb
42c58e6 @jpic Try new travis container based builds
jpic authored
1 sudo: false
1fbc194 @jpic Added travis yml
jpic authored
2 language: python
80e8147 @jpic Exclude django 1.4.10 from python 3.3
jpic authored
3 matrix:
a492cd5 @jpic Allow failure on django master
jpic authored
4 allow_failures:
8b14f3f @blueyed tox: djangomaster without dash (did not get picked up by travis)
blueyed authored
5 - env: TOXENV=py27-djangomaster
6 - env: TOXENV=py34-djangomaster
1fbc194 @jpic Added travis yml
jpic authored
7 python:
771a194 @blueyed travis: use Python 3.4
blueyed authored
8 - "3.4"
1fbc194 @jpic Added travis yml
jpic authored
9 env:
401725c @blueyed travis: move PIP_FIND_LINKS to env.global
blueyed authored
10 global:
594b2a1 @blueyed travis: use tox / TOXENV
blueyed authored
11 - TESTS_SKIP_LIVESERVER=1
4246b31 @jpic Use firefox by default, phantom in travis
jpic authored
12 - TESTS_USE_PHANTOMJS=1
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
13 - PIP_DISABLE_PIP_VERSION_CHECK=true
0c3dee0 @jpic Matrix update
jpic authored
14 matrix:
594b2a1 @blueyed travis: use tox / TOXENV
blueyed authored
15 - TOXENV=py27-django14-taggit-genericm2m
16 - TOXENV=py27-django15-taggit-genericm2m
17 - TOXENV=py27-django16-taggit-genericm2m
18 - TOXENV=py27-django17-taggit-genericm2m
2a606c3 @jpic Test against mysql and postgresql
jpic authored
19 - TOXENV=py27-django18-taggit-genericm2m-postgresql
20 - TOXENV=py27-django18-taggit-genericm2m-mysql
865981a @jpic Support PyPy in certain cases.
jpic authored
21 - TOXENV=pypy-djangostable
594b2a1 @blueyed travis: use tox / TOXENV
blueyed authored
22
23 # Current stable Django.
24 - TOXENV=py27-django18
25 - TOXENV=py27-django18-taggit
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
26 - TOXENV=py27-django18-taggit-genericm2m TESTS_SKIP_LIVESERVER= EXTRAREQ="pytest-cov"
594b2a1 @blueyed travis: use tox / TOXENV
blueyed authored
27 - TOXENV=py27-django18-genericm2m
8b14f3f @blueyed tox: djangomaster without dash (did not get picked up by travis)
blueyed authored
28 - TOXENV=py27-djangomaster
594b2a1 @blueyed travis: use tox / TOXENV
blueyed authored
29
30 - TOXENV=py34-django15-taggit-genericm2m
31 - TOXENV=py34-django16-taggit-genericm2m
32 - TOXENV=py34-django17-taggit-genericm2m
5c6f899 @jpic Added django 1.8 to travis
jpic authored
33 # Current stable Django.
594b2a1 @blueyed travis: use tox / TOXENV
blueyed authored
34 - TOXENV=py34-django18
35 - TOXENV=py34-django18-taggit
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
36 - TOXENV=py34-django18-taggit-genericm2m TESTS_SKIP_LIVESERVER= EXTRAREQ="pytest-cov"
594b2a1 @blueyed travis: use tox / TOXENV
blueyed authored
37 - TOXENV=py34-django18-genericm2m
8b14f3f @blueyed tox: djangomaster without dash (did not get picked up by travis)
blueyed authored
38 - TOXENV=py34-djangomaster
f344a90 @blueyed travis: wheel fix for Django 1.4
blueyed authored
39
c336f81 @blueyed tox: add checkqa-python2; use Python 3 for checkqa
blueyed authored
40 - TOXENV=checkqa-python2
eed7dbd @blueyed tox/travis: use checkqa/pep8 via tox
blueyed authored
41 - TOXENV=checkqa
1fbc194 @jpic Added travis yml
jpic authored
42 install:
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
43 # Create pip wrapper script, using travis_retry (a function) and
44 # inject it into tox.ini.
45 - mkdir -p bin
46 - PATH=$PWD/bin:$PATH
47 - PIP_INSTALL=bin/travis_pip_install
cbb1593 @blueyed Travis: use pip 7 for automatic building of wheels
blueyed authored
48 - printf '#!/bin/bash\n' > $PIP_INSTALL
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
49 - declare -f travis_retry >> $PIP_INSTALL
50 - printf '\necho "=====\nUsing pip-wrapper for \"$@\"\n=====\n" >&2\n' >> $PIP_INSTALL
51 # Handle "pip install -e" for usedevelop from tox.
01f193c @jpic Revert "Use pip3 instead of pip in Python3, clean .travis"
jpic authored
52 - printf '\nif [ "$1" = "-e" ]; then pip install "$@"; exit $?; fi\n' >> $PIP_INSTALL
cbb1593 @blueyed Travis: use pip 7 for automatic building of wheels
blueyed authored
53 # Install using "pip install".
a880eff @jpic Skip wheel to unblock release
jpic authored
54 - printf "pip install \"\$@\"\n" >> $PIP_INSTALL
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
55 - chmod +x $PIP_INSTALL
56
57 # Adjust tox.ini.
58 - sed -i.bak 's/^\[testenv\]/\0\ninstall_command = travis_pip_install {opts} {packages}/' tox.ini
59 - diff tox.ini tox.ini.bak && { echo "tox.ini was not changed."; return 1; } || true
60 - sed -i.bak 's/whitelist_externals =/\0\n travis_pip_install/' tox.ini
61 - diff tox.ini tox.ini.bak && { echo "tox.ini was not changed."; return 1; } || true
62 - cat tox.ini
63
eed7dbd @blueyed tox/travis: use checkqa/pep8 via tox
blueyed authored
64 - travis_pip_install tox
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
65 - if [ -n "$EXTRAREQ" ]; then travis_pip_install $EXTRAREQ; fi
f344a90 @blueyed travis: wheel fix for Django 1.4
blueyed authored
66
01f193c @jpic Revert "Use pip3 instead of pip in Python3, clean .travis"
jpic authored
67 - pip freeze
f617b9c @blueyed travis: move setting RUN_TESTS into before_script
blueyed authored
68 before_script:
2a606c3 @jpic Test against mysql and postgresql
jpic authored
69 - if echo "$TOXENV" | grep mysql; then mysql -e 'create database autocomplete_light_test;'; fi
70 - if echo "$TOXENV" | grep postgresql; then psql -c 'create database autocomplete_light_test;' -U postgres; fi
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
71 - RUN_TESTS="tox -- autocomplete_light"
d61b0ad @blueyed travis: use travis_retry for running the tests
blueyed authored
72 # Run tests either with or without coverage (being installed).
594b2a1 @blueyed travis: use tox / TOXENV
blueyed authored
73 - command -v coveralls && RUN_TESTS="$RUN_TESTS --cov" || true
5b2c30a @blueyed travis: try installing latest phantomjs
blueyed authored
74 before_install:
cbb1593 @blueyed Travis: use pip 7 for automatic building of wheels
blueyed authored
75 # Upgrade pip to 7.x for automatic installing from wheels.
a995810 @blueyed Travis: do not cache pip log; just use 'pip>7'; travis_retry
blueyed authored
76 - travis_retry pip install 'pip>7'
77 - travis_retry npm install phantomjs
5b2c30a @blueyed travis: try installing latest phantomjs
blueyed authored
78 - phantomjs --version
f617b9c @blueyed travis: move setting RUN_TESTS into before_script
blueyed authored
79 script:
cbb1593 @blueyed Travis: use pip 7 for automatic building of wheels
blueyed authored
80 - find $HOME/.cache/pip -ls > /tmp/wheelhouse.before
eed7dbd @blueyed tox/travis: use checkqa/pep8 via tox
blueyed authored
81 - $RUN_TESTS
cbb1593 @blueyed Travis: use pip 7 for automatic building of wheels
blueyed authored
82 - find $HOME/.cache/pip -ls > /tmp/wheelhouse.after
a36aa3b @blueyed fixup! tox/travis: use checkqa/pep8 via tox
blueyed authored
83 - diff /tmp/wheelhouse.before /tmp/wheelhouse.after || true
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
84 - test -d .tox/$TOXENV/log && cat .tox/$TOXENV/log/*.log || true
c49a820 @jpic Added missing dependency
jpic authored
85 after_success:
d61b0ad @blueyed travis: use travis_retry for running the tests
blueyed authored
86 - command -v coveralls && { coveralls; return $?; } || true
3a22569 @jpic Added irc notifications
jpic authored
87 notifications:
3dffbaf @blueyed travis: use/create wheels and cache them between builds
blueyed authored
88 irc:
89 channels:
067f6e3 @jpic Improved travis irc notification template
jpic authored
90 - "irc.freenode.org#yourlabs"
ad19090 @jpic Fixed typo in travis config for irc template
jpic authored
91 template:
067f6e3 @jpic Improved travis irc notification template
jpic authored
92 - "%{repository} (%{commit} %{author}) : %{message} %{build_url} %{compare_url}"
3dffbaf @blueyed travis: use/create wheels and cache them between builds
blueyed authored
93
94 # Persistent cache across builds (http://docs.travis-ci.com/user/caching/).
95 cache:
96 directories:
cbb1593 @blueyed Travis: use pip 7 for automatic building of wheels
blueyed authored
97 - $HOME/.cache/pip
af501e8 @blueyed travis: overhaul pip-install wrapper to take care of wheels (in tox)
blueyed authored
98 before_cache:
a995810 @blueyed Travis: do not cache pip log; just use 'pip>7'; travis_retry
blueyed authored
99 - rm -f $HOME/.cache/pip/log/debug.log
Something went wrong with that request. Please try again.