内容: 记录了目前使用过的项目的一些配置; 其内主要是通过实现apk的打包来校验代码正确性。
image: webcuisine/gitlab-ci-react-native-android
before_script:
- yarn
cache:
untracked: true
key: "$CI_PROJECT_ID"
paths:
- node_modules/
- android/.gradle/
buildapk:
stage: build
script:
- cd android
- chmod +x ./gradlew
- ./gradlew assembleRelease
artifacts:
paths:
- android/app/build/outputs/apk/release/app.apk
test:
stage: test
image: "cirrusci/flutter:stable"
script:
- cd flutter_project/example
- flutter build apk
artifacts:
paths:
- flutter_project/example/build/app/outputs/flutter-apk/app-release.apk
后续持续补充…
|