mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-12 08:59:08 +08:00
[build][ci] misc config
This commit is contained in:
@@ -83,10 +83,7 @@ aliases:
|
||||
# eslint
|
||||
- &eslint
|
||||
name: Lint Code
|
||||
command: |
|
||||
mkdir -p ~/reports
|
||||
./node_modules/.bin/eslint ./src/ --format junit --output-file ~/reports/eslint.xml
|
||||
when: always
|
||||
command: yarn run lint
|
||||
|
||||
# flow
|
||||
- &validate-flow-declarations
|
||||
@@ -159,10 +156,6 @@ jobs:
|
||||
- run: *eslint
|
||||
- run: *validate-flow-declarations
|
||||
- run: *validate-ts-declarations
|
||||
- store_test_results:
|
||||
path: ~/reports
|
||||
- store_artifacts:
|
||||
path: ~/reports
|
||||
|
||||
jet-test-ios:
|
||||
<<: *macos_defaults
|
||||
@@ -209,7 +202,7 @@ jobs:
|
||||
command: cd tests && yarn run build-ios
|
||||
- save-cache: *save-ios-build-cache
|
||||
|
||||
- run: mkdir ~/reports
|
||||
- run: mkdir ~/detox-artifacts
|
||||
|
||||
# Now Test \o/
|
||||
- run:
|
||||
@@ -222,9 +215,9 @@ jobs:
|
||||
command: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
|
||||
|
||||
- store_test_results:
|
||||
path: ~/reports
|
||||
path: ~/detox-artifacts
|
||||
- store_artifacts:
|
||||
path: ~/reports
|
||||
path: ~/detox-artifacts
|
||||
|
||||
|
||||
# -------------------------
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
--recursive
|
||||
--timeout 120000
|
||||
--reporter list
|
||||
--slow 600
|
||||
--reporter spec
|
||||
--slow 1000
|
||||
--bail
|
||||
--exit
|
||||
--require jet/platform/node
|
||||
Reference in New Issue
Block a user