forked from arielsalminen/vue-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 782 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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:
# Install Webpack version
- if [[ -n "$WEBPACK_VERSION" ]]; then npm install --no-save webpack@$WEBPACK_VERSION; fi
branches:
except:
- gh-pages
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:docs
- npm run build:system
- npm run build:app