From 2342b5fea2370367867d5c83998fc55d1f528d43 Mon Sep 17 00:00:00 2001 From: Benjamin Gudehus Date: Sun, 12 May 2019 11:42:30 +0200 Subject: [PATCH] chore: Run npm build and test scripts for travis. --- .travis.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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