From 7d67be826cc8c13f7cd238167204704a9408a045 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Wed, 6 Mar 2019 19:33:09 -0800 Subject: [PATCH 1/3] Try to add conditional update-codeowners to travis --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9bd31bda14..fa657d16d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,15 @@ sudo: false notifications: email: false + +jobs: + include: + - stage: build + script: npm install + script: npm run build + script: npm run test + - stage: codeowners + script: npm run update-codeowners +stages: + - name: codeowners + if: env(TRAVIS_EVENT_TYPE) = cron \ No newline at end of file From 6a5f2760b9f757ab4bf372ff9caa392ba182a689 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 7 Mar 2019 07:13:10 -0800 Subject: [PATCH 2/3] Try travis code from Wesley --- .travis.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa657d16d7..30cde88e5d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,14 +7,9 @@ sudo: false notifications: email: false -jobs: - include: - - stage: build - script: npm install - script: npm run build - script: npm run test - - stage: codeowners - script: npm run update-codeowners -stages: - - name: codeowners - if: env(TRAVIS_EVENT_TYPE) = cron \ No newline at end of file +script: + - npm install + - npm run build + - npm run test + - if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then npm run update-codeowners || travis_terminate + 1; fi \ No newline at end of file From f95172ea59b77244102f2f5a3ad450346f8a4dae Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Thu, 7 Mar 2019 07:23:39 -0800 Subject: [PATCH 3/3] Do not need npm install or run build --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 30cde88e5d..e3d7a6fcc5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,5 @@ notifications: email: false script: - - npm install - - npm run build - npm run test - - if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then npm run update-codeowners || travis_terminate - 1; fi \ No newline at end of file + - if [[ $TRAVIS_EVENT_TYPE == "cron" ]]; then npm run update-codeowners || travis_terminate 1; fi \ No newline at end of file