From ad0e9900217f96bd7812361014e92f112338b36c Mon Sep 17 00:00:00 2001 From: Nandi Wong Date: Sun, 7 Jun 2020 23:59:57 +0800 Subject: [PATCH] add travis --- .travis.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4c536af --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +# TODO: add deploy setting +# TODO: add badge +language: node_js +node_js: 12 +cache: + yarn: true + npm: true + +branches: + only: + - dev + - master + +script: + # Immediate exit when error + - set -e + + # Check code + - yarn lint + + # Test by build + - yarn build