1 Star 0 Fork 0

寒嗲/react-native-amap3d

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 3.49 KB
一键复制 编辑 原始数据 按行查看 历史
7c00 提交于 2019-02-14 00:05 +08:00 . v1.1.0
aliases:
- &android
components:
- build-tools-28.0.3
- android-28
- 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.58.4"
cd App
yarn add react-native-amap3d@next
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 -lh 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 -lh app/build/outputs/apk
- stage: "build test for example"
language: objective-c
osx_image: xcode10.1
cache: *ios-cache
before_install:
script:
- nvm install node
- brew install yarn
- yarn
- cd ios
- pod install --repo-update
- xcodebuild -workspace RNAMap3D.xcworkspace -scheme RNAMap3D -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 -lh app/build/outputs/apk/
- stage: "build test for new project"
language: objective-c
osx_image: xcode10.1
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-amap3d', path: '../node_modules/react-native-amap3d/lib/ios'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wh3043/react-native-amap3d.git
git@gitee.com:wh3043/react-native-amap3d.git
wh3043
react-native-amap3d
react-native-amap3d
master

搜索帮助