Add travis badge and try running on python3 too.
This commit is contained in:
parent
db00408a11
commit
ad2c6d35ca
@ -2,11 +2,17 @@ language: python
|
||||
|
||||
python:
|
||||
- 2.7
|
||||
- 3.4
|
||||
before_script:
|
||||
- sudo add-apt-repository ppa:kalakris/tmux -y
|
||||
# - sudo add-apt-repository ppa:pi-rho/vim -y
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -qq -y tmux vim-gnome
|
||||
- tmux new -d -s vim
|
||||
- vim --version
|
||||
# Display the python2 version in Vim.
|
||||
- vim +'py import sys; open("/tmp/py_version", "w").write("%s" % sys.version)' +quit
|
||||
- cat /tmp/py_version
|
||||
# Display the python3 version in Vim.
|
||||
- vim +'py3 import sys; open("/tmp/py3_version", "w").write("%s" % sys.version)' +quit
|
||||
- cat /tmp/py3_version
|
||||
script: ./test_all.py -v --interface tmux --session vim Simple
|
||||
|
@ -1,4 +1,6 @@
|
||||
[![Build Status](https://travis-ci.org/SirVer/ultisnips.svg?branch=master)](https://travis-ci.org/SirVer/ultisnips)
|
||||
[![Stories in Ready](https://badge.waffle.io/SirVer/ultisnips.png?label=ready&title=Ready)](https://waffle.io/SirVer/ultisnips)
|
||||
|
||||
UltiSnips
|
||||
=========
|
||||
|
||||
@ -58,4 +60,3 @@ discussed in the videos.
|
||||
- [Episode 2: Creating Basic Snippets](http://www.sirver.net/blog/2012/01/08/second-episode-of-ultisnips-screencast/)
|
||||
- [Episode 3: What's new in version 2.0](http://www.sirver.net/blog/2012/02/05/third-episode-of-ultisnips-screencast/)
|
||||
- [Episode 4: Python Interpolation](http://www.sirver.net/blog/2012/03/31/fourth-episode-of-ultisnips-screencast/)
|
||||
|
||||
|
10
test_all.py
10
test_all.py
@ -105,8 +105,8 @@ if __name__ == '__main__':
|
||||
help='How often should each test be retried before it is '
|
||||
'considered failed. Works around flakyness in the terminal '
|
||||
'multiplexer and race conditions in writing to the file system.')
|
||||
p.add_option("-x", "--exitfirst", dest="exitfirst", action="store_true",
|
||||
help="exit instantly on first error or failed test.")
|
||||
p.add_option('-x', '--exitfirst', dest='exitfirst', action='store_true',
|
||||
help='exit instantly on first error or failed test.')
|
||||
|
||||
o, args = p.parse_args()
|
||||
if o.interface not in ('screen', 'tmux'):
|
||||
@ -166,9 +166,9 @@ if __name__ == '__main__':
|
||||
return
|
||||
|
||||
v = 2 if options.verbose else 1
|
||||
return unittest.TextTestRunner(verbosity=v,
|
||||
failfast=options.exitfirst).run(suite)
|
||||
|
||||
successfull = unittest.TextTestRunner(verbosity=v,
|
||||
failfast=options.exitfirst).run(suite).wasSuccessful()
|
||||
return 0 if successfull else 1
|
||||
sys.exit(main())
|
||||
|
||||
# vim:fileencoding=utf-8:foldmarker={{{#,#}}}:
|
||||
|
Loading…
x
Reference in New Issue
Block a user