forked from BBVAEngineering/ember-cli-workbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (65 loc) · 1.65 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
language: node_js
node_js: stable
sudo: false
dist: trusty
addons:
chrome: stable
cache:
directories:
- $HOME/.npm
env:
global:
- JOBS=1
jobs:
fail_fast: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary
include:
- stage: "Tests"
before_install:
- npm config set spin false
- npm install -g npm@6
- npm install -g codecov
- npm install -g greenkeeper-lockfile@1
- npm install -g @commitlint/travis-cli
- npm --version
install:
- if [[ $TRAVIS_BRANCH =~ greenkeeper || $TRAVIS_PULL_REQUEST_BRANCH =~ greenkeeper ]]; then npm install; else npm ci; fi
before_script:
- greenkeeper-lockfile-update
script:
- commitlint-travis
- npm run lint:js
- npm run lint:hbs
- npm test
after_script:
- greenkeeper-lockfile-upload
after_success:
- codecov --file=coverage/node/lcov.info
- codecov --file=coverage/ember/lcov.info
- stage: "Regression Tests"
env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-canary
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
- stage: "Release"
script: skip
deploy:
provider: script
skip_cleanup: true
before_script:
- npm uninstall husky
script:
- npx semantic-release
before_install:
- npm config set spin false
- npm install -g npm@6
- npm --version
script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
stages:
- "Tests"
- "Regression Tests"
- name: "Release"
if: branch = master