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 tests.sh +3 −2 Original line number Diff line number Diff line Loading @@ -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}' Loading tox.ini +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 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
tests.sh +3 −2 Original line number Diff line number Diff line Loading @@ -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}' Loading
tox.ini +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 Loading