add travis tests

This commit is contained in:
Pavol Rusnak 2016-10-03 16:32:58 +02:00
parent 31a937de1b
commit d995e53d28
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 17 additions and 0 deletions

12
.travis.yml Normal file
View File

@ -0,0 +1,12 @@
language: c
install:
- sudo dpkg --add-architecture i386
- sudo apt-get update
- sudo apt-get install libsdl2-dev:i386
before_script:
- make build_unix
script:
- cd src/tests && bash ./runtests.sh

View File

@ -1,5 +1,7 @@
![TREZOR Core](docs/logo.png)
[![Build Status](https://travis-ci.org/trezor/trezor-core.svg?branch=master)](https://travis-ci.org/trezor/trezor-core) [![gitter](https://badges.gitter.im/trezor/community.svg)](https://gitter.im/trezor/community)
* [Documentation](docs/)
##Build instructions for emulator

View File

@ -1,13 +1,16 @@
#!/bin/bash
results=()
error=0
for i in *.py; do
echo
if ../../vendor/micropython/unix/micropython $i; then
results+=("OK $i")
else
results+=("FAIL $i")
error=1
fi
done
echo
echo 'Summary:'
printf '%s\n' "${results[@]}"
exit $error