-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
727 additions
and
777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
aliases: | ||
- &android | ||
components: | ||
- build-tools-23.0.1 | ||
- android-23 | ||
- extra-android-m2repository | ||
- extra-android-support | ||
|
||
- &android-cache | ||
directories: | ||
- ~/.cache/yarn | ||
- ~/.gradle/caches/modules-2 | ||
- ~/.gradle/wrapper | ||
|
||
- &ios-cache | ||
directories: | ||
- ~/.rncache | ||
- ~/Library/Caches/Yarn | ||
- ~/Library/Caches/CocoaPods | ||
|
||
- &init-new-project | ||
| | ||
nvm install node | ||
yarn global add react-native-cli | ||
react-native init App --version="0.53.3" | ||
cd App | ||
yarn add react-native-amap-geolocation | ||
|
||
jobs: | ||
include: | ||
- stage: "test js" | ||
language: node_js | ||
node_js: node | ||
cache: yarn | ||
script: | ||
- node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --bundle-output bundle.js | ||
- ls -l bundle.* | ||
|
||
- stage: "build test for example" | ||
language: android | ||
jdk: oraclejdk8 | ||
android: *android | ||
before_cache: | ||
- rm ~/.gradle/caches/modules-2/modules-2.lock | ||
cache: *android-cache | ||
script: | ||
- nvm install node | ||
- yarn | ||
- cd android | ||
- ./gradlew build | ||
- ls -l app/build/outputs/apk | ||
|
||
- stage: "build test for example" | ||
language: objective-c | ||
osx_image: xcode9.3 | ||
cache: *ios-cache | ||
before_install: | ||
script: | ||
- nvm install node | ||
- brew install yarn | ||
- yarn | ||
- cd ios | ||
- pod install --repo-update | ||
- xcodebuild -workspace RNAMapGeolocation.xcworkspace -scheme RNAMapGeolocation -sdk iphonesimulator -quiet | ||
|
||
- stage: "build test for new project" | ||
language: android | ||
jdk: oraclejdk8 | ||
android: *android | ||
before_cache: | ||
- rm ~/.gradle/caches/modules-2/modules-2.lock | ||
cache: *android-cache | ||
script: | ||
- *init-new-project | ||
- react-native link | ||
- cd android | ||
- ./gradlew build | ||
- ls -l app/build/outputs/apk | ||
|
||
- stage: "build test for new project" | ||
language: objective-c | ||
osx_image: xcode9.3 | ||
cache: *ios-cache | ||
script: | ||
- brew install yarn | ||
- *init-new-project | ||
- cd ios | ||
- | | ||
cat << EOF > Podfile | ||
platform :ios, '9.0' | ||
target 'App' do | ||
pod 'React', :path => '../node_modules/react-native', :subspecs => [ | ||
'Core', | ||
'CxxBridge', | ||
'DevSupport', | ||
'RCTText', | ||
'RCTNetwork', | ||
'RCTWebSocket', | ||
] | ||
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' | ||
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' | ||
pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec' | ||
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' | ||
pod 'react-native-amap-geolocation', path: '../node_modules/react-native-amap-geolocation/lib/ios' | ||
end | ||
EOF | ||
- pod install --repo-update | ||
- xcodebuild -workspace App.xcworkspace -scheme App -sdk iphonesimulator -quiet | ||
|
||
stages: | ||
- "test js" | ||
- name: "build test for example" | ||
if: branch = master | ||
- name: "build test for new project" | ||
if: branch = release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.