Update travis script
Add test local target
Let plugin-text only run in http environment