forked from emberjs/ember-test-helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (73 loc) · 2.26 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
---
language: node_js
node_js:
- '6'
branches:
only:
- master
- /^v\d+\.\d+\.\d+/ # version tags
- /^v\d+-(\d+|x)(-x)?/ # version branches
addons:
chrome: stable
firefox: latest-esr
cache:
yarn: true
stages:
- test
- older version tests
- deploy
env:
global:
# See https://git.io/vdao3 for details.
- JOBS=1
jobs:
fail_fast: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary
include:
# runs tests with current locked deps and linting
- stage: test
name: 'test'
script:
- yarn lint
- yarn test
- name: 'floating dependencies'
install: yarn install --no-lockfile --non-interactive --ignore-engines
script: yarn test
# runs tests against each supported Ember version
- stage: older version tests
env: EMBER_TRY_SCENARIO=ember-2.0
- env: EMBER_TRY_SCENARIO=ember-lts-2.4
- env: EMBER_TRY_SCENARIO=ember-lts-2.8
- env: EMBER_TRY_SCENARIO=ember-lts-2.12
- env: EMBER_TRY_SCENARIO=ember-lts-2.16
- env: EMBER_TRY_SCENARIO=ember-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
- env: EMBER_TRY_SCENARIO=ember-without-application-wrapper
# runs deploy if running on a specific tag
- stage: deploy
if: tag IS present
name: 'npm-publish'
install: yarn global add [email protected]
script: auto-dist-tag --write
deploy:
provider: npm
email: [email protected]
api_key:
secure: rKej7q7tP+K3XUsKftqVhw8/Tgx6pn30OzV0g39RGVTRjWKvLu36UlF3LtP0AfofIKqsnPcvy+VaV9uCOOFiG6xBlXtVjxtqbplBmvKU1SjBHrwtlK61SdlXNKwIagWxBSbCUNxj+ka0d8gpIxS+sNw4sKGWHufH0CoAjpkerog=
on:
tags: true
repo: emberjs/ember-test-helpers
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
install:
- yarn install --ignore-engines
script:
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup