From 3501a5029e4f25c93d36e00577cb86460e4814e6 Mon Sep 17 00:00:00 2001 From: Katie Gengler Date: Tue, 28 Aug 2018 23:14:47 -0400 Subject: [PATCH 1/2] Try stages --- .travis.yml | 60 ++++++++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/.travis.yml b/.travis.yml index 20f8a758..353807f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,7 @@ --- language: node_js node_js: - - "4" - - "7" - - "8" -# - "6" - The test that includes coverage runs with 6 + - "10" sudo: false dist: trusty @@ -12,38 +9,45 @@ dist: trusty addons: chrome: stable -addons: - chrome: stable - -env: - - NPM_SCRIPT=node-test - -matrix: - fast_finish: true - include: - - node_js: "6" - env: NPM_SCRIPT=client-test - - node_js: "6" - env: NPM_SCRIPT=lint - - node_js: "6" - env: NPM_SCRIPT=node-test-with-coverage - - node_js: "4" - env: NPM_SCRIPT=smoke-test - - node_js: "6" - env: NPM_SCRIPT=smoke-test - - node_js: "8" - env: NPM_SCRIPT=smoke-test +cache: + yarn: true before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH - yarn --version - - npm config set spin false - npm install -g bower - bower --version install: - - yarn install --no-lockfile + - yarn install + +jobs: + fail_fast: true + include: + - stage: tests + name: "Node 10 With Coverage" + script: + - yarn lint + - yarn node-test-with-coverage + + - stage: additional tests + name: floating dependencies + install: yarn install --no-lockfile + + - name: "All Commands Smoke Test" + script: + - yarn client-test + + - name: "Node 6 Smoke Test" + node_js: "6" + script: + - yarn smoke-test + + - name: "Node 8 Smoke Test" + node_js: "8" + script: + - yarn smoke-test script: - - npm run-script $NPM_SCRIPT + - yarn node-test From b43825c643d4eb34caea47fa8111314cd9052a0c Mon Sep 17 00:00:00 2001 From: Katie Gengler Date: Wed, 29 Aug 2018 00:00:42 -0400 Subject: [PATCH 2/2] Deploy from Travis --- .travis.yml | 80 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 47 insertions(+), 33 deletions(-) diff --git a/.travis.yml b/.travis.yml index 353807f0..5ff6a86b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,9 @@ ---- language: node_js node_js: - - "10" +- '10' sudo: false + dist: trusty addons: @@ -13,41 +13,55 @@ cache: yarn: true before_install: - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH=$HOME/.yarn/bin:$PATH - - yarn --version - - npm install -g bower - - bower --version +- curl -o- -L https://yarnpkg.com/install.sh | bash +- export PATH=$HOME/.yarn/bin:$PATH +- yarn --version +- npm install -g bower +- bower --version install: - - yarn install +- yarn install + +branches: + only: + - master + # npm version tags + - /^v\d+\.\d+\.\d+/ jobs: fail_fast: true include: - - stage: tests - name: "Node 10 With Coverage" - script: - - yarn lint - - yarn node-test-with-coverage - - - stage: additional tests - name: floating dependencies - install: yarn install --no-lockfile - - - name: "All Commands Smoke Test" - script: - - yarn client-test - - - name: "Node 6 Smoke Test" - node_js: "6" - script: - - yarn smoke-test - - - name: "Node 8 Smoke Test" - node_js: "8" - script: - - yarn smoke-test - + - stage: tests + name: Node 10 With Coverage + script: + - yarn lint + - yarn node-test-with-coverage + - stage: additional tests + name: floating dependencies + install: yarn install --no-lockfile + - name: All Commands Smoke Test + script: + - yarn client-test + - name: Node 6 Smoke Test + node_js: '6' + script: + - yarn smoke-test + - name: Node 8 Smoke Test + node_js: '8' + script: + - yarn smoke-test + - stage: deploy + if: tag IS present + node_js: "10" + install: yarn global add auto-dist-tag + script: auto-dist-tag --write + deploy: + provider: npm + email: ember-try@kmg.io + api_key: + secure: MvdwFee93YPXIBBaPenex2kxABycu41NC+BrvhdJyGiPmDRRLxJbIZM0q4ys3mgpgAbHUIjzuA+O37ex4Pzw6Fr791sECWkv4aDgvElEzo7GmobxduLQnWrQazgAhDj5QTYMZvXgGWVVKdUrSOl3WexxRxH3LLPbc+RJoFSUv10= + on: + tags: true + repo: ember-cli/ember-try script: - - yarn node-test +- yarn node-test