From 298938ee0ce743b3d3b9ef7ef8b9bfd123d01d5b Mon Sep 17 00:00:00 2001 From: Tommy Byrd Date: Wed, 18 Jul 2018 10:32:30 -0400 Subject: [PATCH 1/5] run create-probot-app in travis --- .travis.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.travis.yml b/.travis.yml index 71156fd..c9d7434 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,5 +2,26 @@ sudo: false language: node_js node_js: - "8.3" + +matrix: + include: + - node_js: "10" + allow_failures: + - node_js: "10" + notifications: disabled: true + +install: + - npx create-probot-app \ + -n travis-template-test \ + -d "A Probot App for building on Travis" \ + -a "Pro Bawt" \ + -e "probot@example.com" \ + -h "https://probot.github.io" \ + -u "probot" \ + -r "template" + +script: + - cd travis-template-test && npm test + From e1134a61de5fa21bb1bd58cd16f49f9c4383db50 Mon Sep 17 00:00:00 2001 From: Tommy Byrd Date: Wed, 18 Jul 2018 11:00:11 -0400 Subject: [PATCH 2/5] Removing extra builds for now --- .travis.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index c9d7434..05f66a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,12 +3,6 @@ language: node_js node_js: - "8.3" -matrix: - include: - - node_js: "10" - allow_failures: - - node_js: "10" - notifications: disabled: true From 701839c6f2490a96434e0bb29ef9e39133e1d8c0 Mon Sep 17 00:00:00 2001 From: Tommy Byrd Date: Wed, 18 Jul 2018 11:13:08 -0400 Subject: [PATCH 3/5] make the command a single line --- .travis.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 05f66a5..ba78765 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,14 +7,7 @@ notifications: disabled: true install: - - npx create-probot-app \ - -n travis-template-test \ - -d "A Probot App for building on Travis" \ - -a "Pro Bawt" \ - -e "probot@example.com" \ - -h "https://probot.github.io" \ - -u "probot" \ - -r "template" + - npx create-probot-app -n "travis-template-test" -d "A Probot App for building on Travis" -a "Pro Bawt" -e "probot@example.com" -h "https://probot.github.io" -u "probot" -r "template" travis-template-test script: - cd travis-template-test && npm test From bc74a07139c0406afdb3f2a2d721a459747f2604 Mon Sep 17 00:00:00 2001 From: Tommy Byrd Date: Wed, 18 Jul 2018 19:08:38 -0400 Subject: [PATCH 4/5] add branch name option --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ba78765..788bfc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ notifications: disabled: true install: - - npx create-probot-app -n "travis-template-test" -d "A Probot App for building on Travis" -a "Pro Bawt" -e "probot@example.com" -h "https://probot.github.io" -u "probot" -r "template" travis-template-test + - npx create-probot-app -n "travis-template-test" -d "A Probot App for building on Travis" -a "Pro Bawt" -e "probot@example.com" -h "https://probot.github.io" -u "probot" -r "template" -b ${TRAVIS_PULL_REQUEST_BRANCH} travis-template-test script: - cd travis-template-test && npm test From fbf4352d2ea00c9d7cb65079365b01d5ebae75fb Mon Sep 17 00:00:00 2001 From: Tommy Byrd Date: Wed, 18 Jul 2018 19:13:55 -0400 Subject: [PATCH 5/5] Add TRAVIS_BRANCH for non PR builds --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 788bfc3..bedff93 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ notifications: disabled: true install: - - npx create-probot-app -n "travis-template-test" -d "A Probot App for building on Travis" -a "Pro Bawt" -e "probot@example.com" -h "https://probot.github.io" -u "probot" -r "template" -b ${TRAVIS_PULL_REQUEST_BRANCH} travis-template-test + - npx create-probot-app -n "travis-template-test" -d "A Probot App for building on Travis" -a "Pro Bawt" -e "probot@example.com" -h "https://probot.github.io" -u "probot" -r "template" -b ${TRAVIS_PULL_REQUEST_BRANCH:-TRAVIS_BRANCH} travis-template-test script: - cd travis-template-test && npm test