Updated travis build

This commit is contained in:
Samuel Vasko
2017-03-03 21:35:39 +00:00
parent ff9e16c6a7
commit b5875bf733
4 changed files with 14 additions and 5 deletions

View File

@@ -1,8 +1,16 @@
language: python
python:
- "2.7"
- "3.5"
- "2.7"
- "3.6"
addons:
apt:
packages:
- golang
before_install:
- export GOPATH=~/go
- go get github.com/BurntSushi/toml-test
install:
- python setup.py install
- chmod +x ./tests/*.sh
script:
- python toml_test.py < examples/example-v0.4.0.toml
- ~/go/bin/toml-test ./tests/decoding_test.sh

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python2
"""Decodes toml and outputs it as tagged JSON"""
import datetime

2
tests/decoding_test.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
python tests/decoding_test.py

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""Decodes toml and outputs it as JSON"""
import toml_test