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

Add new project build test

parent 4f11c531
# OSX .idea/
# .gradle/
.DS_Store node_modules/
# Xcode
#
build/ build/
*.pbxuser xcuserdata/
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml *.iml
local.properties
# 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
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: jobs:
include: include:
- stage: test - stage: "test js"
language: node_js language: node_js
node_js: node node_js: node
cache: cache:
directories: [node_modules] directories: [node_modules]
- stage: build - stage: "build test for example"
language: android language: android
jdk: oraclejdk8 jdk: oraclejdk8
android: android: *android
components:
- build-tools-23.0.1
- android-23
- extra-android-m2repository
- extra-android-support
cache: cache:
directories: directories:
- example/node_modules - example/node_modules
- ~/.gradle/caches - ~/.gradle/caches
- ~/.gradle/wrappers - ~/.gradle/wrappers
script: script:
- nvm install node - *init-example
- cd example
- npm i
- cd android - cd android
- ./gradlew assembleDebug - ./gradlew build
- ./gradlew assembleRelease
- ls -l app/build/outputs/apk - ls -l app/build/outputs/apk
- stage: build - stage: "build test for example"
language: objective-c language: objective-c
osx_image: xcode9.1 osx_image: xcode9.1
cache: cache:
...@@ -38,9 +53,44 @@ jobs: ...@@ -38,9 +53,44 @@ jobs:
- ~/.rncache - ~/.rncache
- ~/Library/Caches/CocoaPods/Pods - ~/Library/Caches/CocoaPods/Pods
script: script:
- nvm install node - *init-example
- cd example
- npm i
- cd ios - cd ios
- pod install - pod install
- xcodebuild -workspace RNAMap3D.xcworkspace -scheme RNAMap3D -sdk iphonesimulator -quiet - 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 高德地图组件,使用最新 3D SDK,支持 Android + iOS,受 [react-native-maps](https://github.com/airbnb/react-native-maps) 启发,提供功能丰富且易用的接口。
该项目很大一定程度参考了 [react-native-maps](https://github.com/airbnb/react-native-maps)
目前正在开发中,欢迎各种 [Issue](https://github.com/qiuxiang/react-native-amap3d/issues/new)
## 功能 ## 功能
...@@ -177,3 +174,8 @@ import MapView from 'react-native-amap3d' ...@@ -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 { ...@@ -134,6 +134,11 @@ android {
} }
} }
} }
android {
lintOptions {
abortOnError false
}
}
} }
dependencies { 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