From b3b09db3b4c9029166d5953fbbaf97d98de662f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 27 Jan 2021 13:19:39 +0300 Subject: [PATCH] Still working on travis --- .travis.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0f3512f..5648ac2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,35 @@ language: node_js +node_js: + - "8.6.0" + - "node" +env: + - WEBPACK_VERSION= # Current, from package.json + - WEBPACK_VERSION=4 +install: + # Use npm 5.7.x since it has introduced `npm ci` + - if [[ `npm -v` != 5.7* ]]; then npm install -g npm@'>=5.7.1'; fi + - npm ci +before_script: + - if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; fi +stages: + - lint + - test + - build +jobs: + include: + - stage: lint + script: + # Run linter + - npm run lint + - stage: test + script: + # Run tests + - npm run test + - stage: build + script: + # Build all + - npm run build + branches: only: - production