Unverified Commit e00c8920 authored by 7c00's avatar 7c00 Committed by GitHub

Add new project build test

parent 4f11c531
# OSX
#
.DS_Store
# Xcode
#
.idea/
.gradle/
node_modules/
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
xcuserdata/
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
# node.js
#
node_modules/
npm-debug.log
yarn-error.log
# BUCK
buck-out/
\.buckd/
*.keystore
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
local.properties
aliases:
- &android
components:
- build-tools-23.0.1
- android-23
- extra-android-m2repository
- extra-android-support
- &init-example
|
nvm install node
cd example
npm i
- &init-new-project
|
nvm install node
npm i -g react-native-cli
react-native init App
cd App
npm i
npm i react-native-amap3d
jobs:
include:
- stage: test
- stage: "test js"
language: node_js
node_js: node
cache:
directories: [node_modules]
- stage: build
- stage: "build test for example"
language: android
jdk: oraclejdk8
android:
components:
- build-tools-23.0.1
- android-23
- extra-android-m2repository
- extra-android-support
android: *android
cache:
directories:
- example/node_modules
- ~/.gradle/caches
- ~/.gradle/wrappers
script:
- nvm install node
- cd example
- npm i
- *init-example
- cd android
- ./gradlew assembleDebug
- ./gradlew assembleRelease
- ./gradlew build
- ls -l app/build/outputs/apk
- stage: build
- stage: "build test for example"
language: objective-c
osx_image: xcode9.1
cache:
......@@ -38,9 +53,44 @@ jobs:
- ~/.rncache
- ~/Library/Caches/CocoaPods/Pods
script:
- nvm install node
- cd example
- npm i
- *init-example
- cd ios
- pod install
- xcodebuild -workspace RNAMap3D.xcworkspace -scheme RNAMap3D -sdk iphonesimulator -quiet
- stage: "build test for new project"
language: android
jdk: oraclejdk8
android: *android
cache:
directories:
- ~/.gradle/caches
- ~/.gradle/wrappers
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.1
cache:
directories:
- ~/.rncache
- ~/Library/Caches/CocoaPods/Pods
script:
- *init-new-project
- cd ios
- |
echo -e "platform :ios, '8.0'\n\ntarget 'App' do\n pod 'yoga', path: '../node_modules/react-native/ReactCommon/yoga/'\n pod 'React', path: '../node_modules/react-native/'\n pod 'react-native-amap3d', path: '../node_modules/react-native-amap3d/'\nend" > Podfile
- pod install
- 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 = master
# react-native-amap3d [![npm version](https://badge.fury.io/js/react-native-amap3d.svg)](https://badge.fury.io/js/react-native-amap3d) [![build status](https://travis-ci.org/qiuxiang/react-native-amap3d.svg?branch=master)](https://travis-ci.org/qiuxiang/react-native-amap3d)
# react-native-amap3d [![npm version][version-badge]][npm] [![build status][build-badge]][build]
react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS。
该项目很大一定程度参考了 [react-native-maps](https://github.com/airbnb/react-native-maps)
目前正在开发中,欢迎各种 [Issue](https://github.com/qiuxiang/react-native-amap3d/issues/new)
react-native 高德地图组件,使用最新 3D SDK,支持 Android + iOS,受 [react-native-maps](https://github.com/airbnb/react-native-maps) 启发,提供功能丰富且易用的接口。
## 功能
......@@ -177,3 +174,8 @@ import MapView from 'react-native-amap3d'
- 问题不具备普遍性,且缺乏讨论
问题被关闭,仍然可以继续反馈,我会尽量回复。
[npm]: https://www.npmjs.com/package/react-native-amap3d
[version-badge]: https://badge.fury.io/js/react-native-amap3d.svg
[build-badge]: https://travis-ci.org/qiuxiang/react-native-amap3d.svg?branch=master
[build]: https://travis-ci.org/qiuxiang/react-native-amap3d
......@@ -134,6 +134,11 @@ android {
}
}
}
android {
lintOptions {
abortOnError false
}
}
}
dependencies {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment