diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..822dd87a63 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: c + + +install: + - sudo apt-get install check + +script: + - make tests + - ./tests diff --git a/README.md b/README.md index 435f9f1ad6..90dbf421a5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ trezor-crypto ============= +[![Build Status](https://travis-ci.org/trezor/trezor-crypto.svg?branch=master)](https://travis-ci.org/trezor/trezor-crypto) + Heavily optimized cryptography algorithms for embedded devices. These include: diff --git a/tests.c b/tests.c index 9b40d83c52..511993df16 100644 --- a/tests.c +++ b/tests.c @@ -152,7 +152,7 @@ START_TEST(test_base58) memcpy(rawn, fromhex(*raw), len); r = base58_encode_check(rawn, len, strn, sizeof(strn)); - ck_assert_int_eq(r, strlen(*str) + 1); + ck_assert_int_eq((size_t)r, strlen(*str) + 1); ck_assert_str_eq(strn, *str); r = base58_decode_check(strn, rawn, len);