diff --git a/.travis.yml b/.travis.yml index b312720..04800b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,22 @@ +# use ubuntu linux. +os: linux +dist: trusty + +# run in container. +sudo: false + +# use nodejs environment. language: node_js -node_js: - - "10" +node_js: "10" + +# run npm install. before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start + - sleep 3 + - npm install + +# run npm build and test scripts. +script: + - npm run build + - npm run test