updated with code from kyab/travis-test-arduino