From 35de5720cc3a9a805c159fabbbaff688b017fa5b 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:28:24 +0300 Subject: [PATCH] tt --- .travis.yml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5648ac2..18f34d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,30 +5,10 @@ node_js: 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: