diff --git a/.travis.yml b/.travis.yml index 8e62b22c..bd18edfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,14 +11,14 @@ branches: - /^dependabot\/.*$/ cache: - directories: - - $HOME/.npm + yarn: true before_install: - - npm config set spin false + - curl -o- -L https://yarnpkg.com/install.sh | bash + - export PATH=$HOME/.yarn/bin:$PATH install: - - npm install + - yarn install --no-lockfile jobs: include: @@ -32,7 +32,7 @@ jobs: script: # Usually, it's ok to finish the test scenario without reverting # to the addon's original dependency state, skipping "cleanup". - - npm run test:strip -- --skip-cleanup + - yarn test:strip --skip-cleanup - <<: *ember-test env: NAME=test:keep # used only to make Travis UI show description @@ -40,20 +40,20 @@ jobs: script: # Usually, it's ok to finish the test scenario without reverting # to the addon's original dependency state, skipping "cleanup". - - npm run test:keep -- --skip-cleanup + - yarn test:keep --skip-cleanup - stage: test env: NAME=lint # used only to make Travis UI show description script: - - npm run lint + - yarn lint - &node-test stage: test env: NAME=node-tests # used only to make Travis UI show description script: - - npm run test:node + - yarn test:node - <<: *node-test node_js: 8 diff --git a/config/ember-try.js b/config/ember-try.js index 04120381..a1546218 100644 --- a/config/ember-try.js +++ b/config/ember-try.js @@ -11,7 +11,8 @@ module.exports = function() { getChannelURL('canary'), ]).then((urls) => { return { - command: 'npm test', + useYarn: true, + command: 'yarn test', useVersionCompatibility: true, scenarios: [ {