Skip to content

Commit 2e638d3

Browse files
author
Robert Jackson
committed
Update .travis.yml to run older Ember scenarios.
And also use `yarn` instead of `npm`...
1 parent 26a8984 commit 2e638d3

1 file changed

Lines changed: 21 additions & 10 deletions

File tree

.travis.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ addons:
1212
chrome: stable
1313

1414
cache:
15-
directories:
16-
- $HOME/.npm
15+
yarn: true
1716

1817
env:
1918
global:
@@ -31,24 +30,36 @@ jobs:
3130
- stage: "Tests"
3231
name: "Tests"
3332
script:
34-
- npm run lint:hbs
35-
- npm run lint:js
36-
- npm test
33+
- yarn lint:hbs
34+
- yarn lint:js
35+
- yarn test
36+
- name: "Floating Dependencies"
37+
install:
38+
- yarn install --no-lockfile --non-interactive
39+
script:
40+
- yarn test
41+
3742

3843
# we recommend new addons test the current and previous LTS
3944
# as well as latest stable release (bonus points to beta/canary)
4045
- stage: "Additional Tests"
41-
env: EMBER_TRY_SCENARIO=ember-lts-2.16
46+
env: EMBER_TRY_SCENARIO=ember-1.13
47+
- env: EMBER_TRY_SCENARIO=ember-lts-2.4
48+
- env: EMBER_TRY_SCENARIO=ember-lts-2.8
49+
- env: EMBER_TRY_SCENARIO=ember-lts-2.12
50+
- env: EMBER_TRY_SCENARIO=ember-lts-2.16
4251
- env: EMBER_TRY_SCENARIO=ember-lts-2.18
4352
- env: EMBER_TRY_SCENARIO=ember-release
4453
- env: EMBER_TRY_SCENARIO=ember-beta
4554
- env: EMBER_TRY_SCENARIO=ember-canary
4655
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
4756

4857
before_install:
49-
- npm config set spin false
50-
- npm install -g npm@4
51-
- npm --version
58+
- curl -o- -L https://yarnpkg.com/install.sh | bash
59+
- export PATH=$HOME/.yarn/bin:$PATH
60+
61+
install:
62+
- yarn install --non-interactive
5263

5364
script:
54-
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
65+
- yarn ember try:one $EMBER_TRY_SCENARIO

0 commit comments

Comments
 (0)