Browse Source

Still working on travis

production
Yiğit Çolakoğlu 4 years ago
parent
commit
b3b09db3b4
1 changed files with 31 additions and 0 deletions
  1. +31
    -0
      .travis.yml

+ 31
- 0
.travis.yml View File

@ -1,4 +1,35 @@
language: node_js 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: branches:
only: only:
- production - production


Loading…
Cancel
Save