[tests] terminal should only be set once. Otherwise, when running all tests, the terminal is set multiple times, the original settings are lost, and the exit handler is useless
[CI] added simple .travis.yml for compilation test