set up check mode for travis-ci