hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

Add bats tests #111

Closed StefanScherer closed 6 years ago

StefanScherer commented 6 years ago

Start adding some BATS tests running in a Container on Travis Circle.

For example

./Linux/flash -f -d loo https://github.com/hypriot/image-builder-rpi/releases/download/v1.7.1/hypriotos-rpi-v1.7.1.img.zip

runs ins a BATS test and downloads an SD card image and flashes it into a temp file loo (to trick some grep in the flash script).

Also added shellcheck for both versions, so I had to remove the Unicode characters.