Browse Source

Add tests

master
Luke Childs 6 years ago
parent
commit
b7545b9e40
  1. 1
      .gitignore
  2. 2
      .travis.yml
  3. 25
      test

1
.gitignore

@ -0,0 +1 @@
testfiles

2
.travis.yml

@ -1,7 +1,7 @@
sudo: required
services:
- docker
script: docker build -t ledger-sdk .
script: docker build -t ledger-sdk . && ./test
notifications:
email:
on_success: never

25
test

@ -0,0 +1,25 @@
#!/bin/bash
set -euo pipefail
echo
echo "Running tests..."
echo
if [ -d "testfiles" ] ; then
rm -rf testfiles
fi
mkdir testfiles
cd testfiles
git clone https://github.com/LedgerHQ/ledger-sample-apps.git
cd ledger-sample-apps/blue-app-helloworld
git checkout 2aff840de034daa0725fb4755c851b3e9c979b87
echo
echo "Building blue-app-helloworld..."
docker run -v ${PWD}:/code ledger-sdk
echo
echo "Checking bin/app.hex checksum..."
echo "ee5dd7653d67036aa98ecb940b411193c3c5cc58f862c8a325a12dd537350458 bin/app.hex" | shasum --algorithm 256 --check
Loading…
Cancel
Save