Commit 9c5fc89a authored by nimrod's avatar nimrod
Browse files

Merge branch 'feature/travisci'

parents 252ab5d1 9451c221
Loading
Loading
Loading
Loading

.travis.yml

0 → 100644
+16 −0
Original line number Diff line number Diff line
---
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
+3 −2
Original line number Diff line number Diff line
@@ -9,9 +9,10 @@ export name='John'
test "$(echo 'Hello {{ name if name is defined else 'world' }}.' | template)" = "Hello John."

echo Testing arguments and reading/ writing to file.
echo '{{ USER }}' > "$infile"
echo '{{ name }}' > "$infile"
export name='John'
template --output "$outfile" "$infile"
test "$(cat $outfile)" = "$USER"
test "$(cat $outfile)" = "$name"

echo Testing JSON parsing.
export json='{"a": 1, "b": 2}'
+8 −0
Original line number Diff line number Diff line
[tox]
envlist = py{2,3}

[travis]
python =
    2.7: py2
    3.2: py3
    3.3: py3
    3.4: py3
    3.5: py3

[testenv]
basepython =
    py2: python2