mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[build][ci] use different mocha.opts file in CI
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
const detox = require('detox');
|
||||
const config = require('../package.json').detox;
|
||||
|
||||
if (process.env.CIRCLECI) {
|
||||
config['runner-config'] = 'e2e/mocha.ci.opts';
|
||||
} else {
|
||||
config['runner-config'] = 'e2e/mocha.local.opts';
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
await detox.init(config);
|
||||
// needs to be called before any usage of firestore
|
||||
@@ -12,6 +18,6 @@ after(async () => {
|
||||
console.log('Cleaning up...');
|
||||
await TestHelpers.firestore.cleanup();
|
||||
console.log('Firestore cleaned up...');
|
||||
await detox.cleanup();
|
||||
// await detox.cleanup(); // TODO hangs - most likely jet internals interfering
|
||||
console.log('Detox cleaned up...');
|
||||
});
|
||||
|
||||
9
tests/e2e/mocha.ci.opts
Executable file
9
tests/e2e/mocha.ci.opts
Executable file
@@ -0,0 +1,9 @@
|
||||
--recursive
|
||||
--timeout 120000
|
||||
--reporter xunit
|
||||
--reporter-options output=~/reports/ios-tests.xml.
|
||||
--slow 1200
|
||||
--bail
|
||||
--exit
|
||||
--require jet/platform/node
|
||||
--require ./helpers
|
||||
Reference in New Issue
Block a user