This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
90 lines (77 loc) · 1.96 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
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-lts-2.18
- env: EMBER_TRY_SCENARIO=ember-lts-3.4
- 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
script:
- npx semantic-release
- stage: "Deploy"
script: npm run build -- -prod
deploy:
provider: pages
skip_cleanup: true
github-token: $GH_TOKEN
local-dir: dist
verbose: true
before_install:
- npm config set spin false
- npm install -g npm@6
- npm --version
install:
- npm ci
script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip_cleanup
stages:
- "Tests"
- "Regression Tests"
- name: "Release"
if: branch = master
- name: "Deploy"
if: branch = master