添加本地测试和CI测试同时支持
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
f23a607148
commit
db72ad3694
|
@ -19,7 +19,7 @@ steps:
|
||||||
image: node:16
|
image: node:16
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
- yarn test
|
- env CI=1 yarn test
|
||||||
- name: notify
|
- name: notify
|
||||||
image: appleboy/drone-telegram
|
image: appleboy/drone-telegram
|
||||||
when:
|
when:
|
||||||
|
|
|
@ -20,7 +20,9 @@ beforeAll(() => {
|
||||||
writeFileSync('private.key', privateKey)
|
writeFileSync('private.key', privateKey)
|
||||||
}
|
}
|
||||||
|
|
||||||
//config.database.url = 'mongodb://setup-database:27017/yggdrasil?readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false'
|
if(process.env['CI']) {
|
||||||
|
config.database.url = 'mongodb://setup-database:27017/yggdrasil?readPreference=primary&appname=MongoDB%20Compass&directConnection=true&ssl=false'
|
||||||
|
}
|
||||||
return setup()
|
return setup()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue