Skip to content

Commit

Permalink
skip puppet that requires token in smoke testing (#1580)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Aug 31, 2018
1 parent 9a9760f commit bb0eb5c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions tests/fixtures/smoke-testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@

import { Wechaty } from 'wechaty'

function getBotList () {
return [
function getBotList (): Wechaty[] {
const botList = [
new Wechaty({ puppet: 'wechaty-puppet-mock' }),
new Wechaty({ puppet: 'wechaty-puppet-wechat4u' }),
new Wechaty({ puppet: 'wechaty-puppet-puppeteer' }),
new Wechaty({
puppet: 'wechaty-puppet-padchat',
// we use WECHATY_PUPPET_PADCHAT_TOKEN environment variable at here.
}),
]

if (!process.env.TRAVIS_PULL_REQUEST) {
botList.push(
new Wechaty({
puppet: 'wechaty-puppet-padchat',
// we use WECHATY_PUPPET_PADCHAT_TOKEN environment variable at here.
})
)
}

return botList
}

async function main () {
Expand Down

0 comments on commit bb0eb5c

Please sign in to comment.