Skip to content
Snippets Groups Projects
Commit 9c5fc89a authored by nimrod's avatar nimrod
Browse files

Merge branch 'feature/travisci'

parents 252ab5d1 9451c221
No related branches found
No related tags found
No related merge requests found
---
language: python
python: ["2.7", "3.2", "3.3", "3.4", "3.5"]
dist: trusty
sudo: false
cache:
- pip
install:
- pip install tox-travis
script:
- tox
notifications:
email: false
...@@ -9,9 +9,10 @@ export name='John' ...@@ -9,9 +9,10 @@ export name='John'
test "$(echo 'Hello {{ name if name is defined else 'world' }}.' | template)" = "Hello John." test "$(echo 'Hello {{ name if name is defined else 'world' }}.' | template)" = "Hello John."
echo Testing arguments and reading/ writing to file. echo Testing arguments and reading/ writing to file.
echo '{{ USER }}' > "$infile" echo '{{ name }}' > "$infile"
export name='John'
template --output "$outfile" "$infile" template --output "$outfile" "$infile"
test "$(cat $outfile)" = "$USER" test "$(cat $outfile)" = "$name"
echo Testing JSON parsing. echo Testing JSON parsing.
export json='{"a": 1, "b": 2}' export json='{"a": 1, "b": 2}'
......
[tox] [tox]
envlist = py{2,3} envlist = py{2,3}
[travis]
python =
2.7: py2
3.2: py3
3.3: py3
3.4: py3
3.5: py3
[testenv] [testenv]
basepython = basepython =
py2: python2 py2: python2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment