2019-03-29 19:31:30 +00:00
|
|
|
version: 2.1
|
2019-03-02 08:00:53 +00:00
|
|
|
|
2019-03-29 19:31:30 +00:00
|
|
|
orbs:
|
|
|
|
rn: react-native-community/react-native@dev:0.1.0-rc10
|
2019-03-02 08:00:53 +00:00
|
|
|
|
|
|
|
jobs:
|
2019-03-29 19:31:30 +00:00
|
|
|
checkout_code:
|
|
|
|
executor: rn/linux_js
|
2019-03-02 08:00:53 +00:00
|
|
|
steps:
|
2019-03-29 19:31:30 +00:00
|
|
|
- checkout
|
|
|
|
- persist_to_workspace:
|
|
|
|
root: .
|
|
|
|
paths: .
|
|
|
|
analyze:
|
|
|
|
executor: rn/linux_js
|
2019-03-02 08:00:53 +00:00
|
|
|
steps:
|
2019-03-29 19:31:30 +00:00
|
|
|
- attach_workspace:
|
|
|
|
at: .
|
|
|
|
- rn/yarn_install
|
|
|
|
- run:
|
|
|
|
name: Eslint
|
|
|
|
command: yarn run validate:eslint
|
|
|
|
- run:
|
|
|
|
name: Flow
|
|
|
|
command: yarn run validate:flow
|
|
|
|
- run:
|
|
|
|
name: TypeScript
|
|
|
|
command: yarn run validate:typescript
|
|
|
|
- run:
|
|
|
|
name: Jest
|
|
|
|
command: yarn run test:jest
|
|
|
|
- run:
|
|
|
|
name: Android JavaScript Bundle
|
|
|
|
command: yarn run test:detox:android:bundle:release
|
|
|
|
- run:
|
|
|
|
name: iOS JavaScript Bundle
|
|
|
|
command: yarn run test:detox:ios:bundle:release
|
2019-04-24 16:06:30 +00:00
|
|
|
publish:
|
|
|
|
executor: rn/linux_js
|
|
|
|
steps:
|
|
|
|
- attach_workspace:
|
|
|
|
at: .
|
2019-05-07 20:17:24 +00:00
|
|
|
- rn/yarn_install
|
2019-04-24 16:06:30 +00:00
|
|
|
- run:
|
|
|
|
name: Publish to NPM
|
|
|
|
command: yarn ci:publish
|
2019-03-02 08:00:53 +00:00
|
|
|
|
|
|
|
workflows:
|
2019-03-29 19:31:30 +00:00
|
|
|
test:
|
2019-03-02 08:00:53 +00:00
|
|
|
jobs:
|
2019-03-29 19:31:30 +00:00
|
|
|
- checkout_code
|
|
|
|
- analyze:
|
|
|
|
requires:
|
|
|
|
- checkout_code
|
2019-04-24 16:06:30 +00:00
|
|
|
- rn/android_build:
|
|
|
|
name: android_debug_build
|
|
|
|
project_path: "example/android"
|
|
|
|
build_type: debug
|
|
|
|
requires:
|
|
|
|
- analyze
|
|
|
|
- rn/android_build:
|
|
|
|
name: android_release_build
|
|
|
|
project_path: "example/android"
|
|
|
|
build_type: release
|
|
|
|
requires:
|
|
|
|
- analyze
|
2019-04-14 10:53:06 +00:00
|
|
|
# - rn/android_test:
|
|
|
|
# logcat_grep: "com.camerarollexample"
|
|
|
|
# detox_configuration: "android.emu.release"
|
|
|
|
# requires:
|
|
|
|
# - android_release_build
|
|
|
|
# - rn/ios_build_and_test:
|
|
|
|
# project_path: "example/ios/CameraRollExample.xcodeproj"
|
|
|
|
# derived_data_path: "example/ios/build"
|
|
|
|
# device: "iPhone X"
|
|
|
|
# build_configuration: "Release"
|
|
|
|
# scheme: "CameraRollExample"
|
|
|
|
# detox_configuration: "ios.sim.release"
|
|
|
|
# requires:
|
|
|
|
# - analyze
|
2019-04-24 16:06:30 +00:00
|
|
|
- publish:
|
|
|
|
requires:
|
|
|
|
- checkout_code
|
|
|
|
- analyze
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
only: master
|