add travis-ci

This commit is contained in:
yorkie
2017-07-12 15:03:32 +08:00
parent 51662c71a7
commit ea4b74de6f
2 changed files with 54 additions and 10 deletions

43
.travis.yml Normal file
View File

@@ -0,0 +1,43 @@
language: node_js
node_js:
- "7.1"
sudo: false
cache:
directories:
- $HOME/.yarn-cache
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
env:
- NODE_ENV='test'
script:
- npm test
- npm run bundle:ios
matrix:
include:
- language: android
os: linux
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
sudo: true
node_js: false
install:
- npm install
before_install:
- nvm install 7
- node --version
android:
components:
- android-23
- build-tools-23.0.1
- language: objective-c
os: osx
osx_image: xcode8.2
node_js: false
xcode_project: ios/RCTWeChat.xcodeproj
xcode_scheme: ios/RCTWeChat
script:
- cd ios
- xcodebuild -scheme RCTWeChat -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
- travis_retry xctool run-tests -scheme RCTWeChat -sdk iphonesimulator -launch-timeout 90 ONLY_ACTIVE_ARCH=NO

View File

@@ -1,4 +1,6 @@
![wechat logo](weixin.png?raw=true) React-Native Bridge
![weixin logo](weixin.png?raw=true)
# React-Native-Wechat
## Table of Contents
@@ -40,6 +42,7 @@ And [react-native-wechat] has the following tracking data in open source world:
| NPM | [![NPM version][npm-image]][npm-url] |
| Dependency | [![Dependency Status][david-image]][david-url] |
| Downloads | [![Downloads][downloads-image]][downloads-url] |
| Build | [![Build Status](travis-image)](travis-url) |
## Linking Steps
@@ -507,22 +510,20 @@ $ npm install react-native-wechat --save
## License
MIT @ [WeFlex], Inc
MIT
[react-native-wechat]: https://github.com/weflex/react-native-wechat
[react-native-wechat]: https://github.com/yorkie/react-native-wechat
[npm-image]: https://img.shields.io/npm/v/react-native-wechat.svg?style=flat-square
[npm-url]: https://npmjs.org/package/react-native-wechat
[travis-image]: https://img.shields.io/travis/weflex/react-native-wechat.svg?style=flat-square
[travis-url]: https://travis-ci.org/weflex/react-native-wechat
[david-image]: http://img.shields.io/david/weflex/react-native-wechat.svg?style=flat-square
[david-url]: https://david-dm.org/weflex/react-native-wechat
[travis-image]: https://travis-ci.org/yorkie/react-native-wechat.svg?branch=master
[travis-url]: https://travis-ci.org/yorkie/react-native-wechat
[david-image]: http://img.shields.io/david/yorkie/react-native-wechat.svg?style=flat-square
[david-url]: https://david-dm.org/yorkie/react-native-wechat
[downloads-image]: http://img.shields.io/npm/dm/react-native-wechat.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/react-native-wechat
[Deng Yun]: https://github.com/tdzl2003
[Xing Zhen]: https://github.com/xing-zheng
[Yorkie Liu]: https://github.com/yorkie
[WeFlex]: https://github.com/weflex
[react-native-cn]: https://github.com/reactnativecn
[WeChat SDK]: https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=1417674108&token=&lang=zh_CN
[Linking Libraries iOS Guidance]:
https://developer.apple.com/library/ios/recipes/xcode_help-project_editor/Articles/AddingaLibrarytoaTarget.html
[Linking Libraries iOS Guidance]: https://developer.apple.com/library/ios/recipes/xcode_help-project_editor/Articles/AddingaLibrarytoaTarget.html