UNPKG

1.11 kBYAMLView Raw
1language: node_js
2
3jobs:
4 fast_finish: true
5 allow_failures:
6 - stage: security scan 🔐
7
8 include:
9 - stage: unit tests 👩🏽‍💻
10 script: npm run test:unit
11 node_js: lts/*
12
13 - stage: spec tests 👩🏽‍💻
14 script: npm run test:specs
15 node_js: v0.10
16 - node_js: v4
17 - node_js: lts/*
18 - node_js: node
19
20 - stage: lint
21 script: npm run test:lint
22 node_js: lts/*
23
24 - stage: minify 🗜️
25 script: |
26 npm run build
27 if ! git diff --quiet; then
28 git config --global user.email "travis@travis-ci.org"
29 git config --global user.name "Travis-CI"
30 git config credential.helper "store --file=.git/credentials"
31 echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
32 git commit -am '🗜️ minify [skip ci]'
33 git push origin HEAD:${TRAVIS_BRANCH}
34 fi
35 node_js: lts/*
36 if: branch = master AND type = push
37
38 - stage: security scan 🔐
39 script: npm run test:redos
40 node_js: lts/*
41
42cache:
43 directories:
44 - node_modules
45
46git:
47 depth: 3