Skip to content

Instantly share code, notes, and snippets.

@lilpolymath
Created March 3, 2021 14:53
Show Gist options
  • Save lilpolymath/1b7948103f88ae36725440b6ea6f974e to your computer and use it in GitHub Desktop.
Save lilpolymath/1b7948103f88ae36725440b6ea6f974e to your computer and use it in GitHub Desktop.
image: reactnativecommunity/react-native-android
pipelines:
custom:
no-test:
- step:
name: Build without Test
caches:
- node
- gradle
script:
- echo "This is a manual test without the test suite."
- npm i -g envinfo && envinfo
- npm install
- npm install jetifier --save-dev
- npx jetify
- npx react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res
- cd android && chmod +x gradlew
- ./gradlew assembleDebug
artifacts:
- android/app/build/outputs/**
pull-requests:
'**':
- step:
name: Test
caches:
- node
script:
- npm i -g envinfo && envinfo
- npm install
- npm test
branches:
master:
- step:
name: Test
caches:
- node
script:
- npm i -g envinfo && envinfo
- npm install
- npm test
- step:
name: Build
caches:
- node
- gradle
script:
- npm i -g envinfo && envinfo
- npm install
- npm install jetifier --save-dev
- npx jetify
- npm test
- npx react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res
- cd android && chmod +x gradlew
- ./gradlew assembleDebug
artifacts:
- android/app/build/outputs/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment