Skip to content

Commit

Permalink
Add Travis CI integration
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle committed Nov 18, 2019
1 parent 127968c commit 520b8ee
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
before_cache: rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
yarn: true
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- nvm install 11.0.0
- npm i -g yarn
install: yarn
jobs:
include:
- language: android
android:
components:
- build-tools-28.0.3
- android-28
- android-22
- sys-img-armeabi-v7a-android-22
licenses:
- android-sdk-license-.+
before_script:
- echo no | android create avd -f -n test -t android-22 -b armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- cd android/
script: TERM=dumb ./gradlew connectedCheck
- language: objective-c
osx_image: xcode10.3
before_script:
- cd ios/
- pod install
script: xcodebuild -workspace "rnsampleapp.xworkspace" -scheme "rnsampleapp" -destination "platform=iOS Simulator,name=iPhone 11,OS=13.0" build | xcpretty
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ A sample React Native app with simple CI integrations.

### Travis CI

TODO
[![Build Status][5]][6]

[1]: https://github.com/fbluemle/sampleapp-react-native/workflows/main/badge.svg
[2]: https://github.com/fbluemle/sampleapp-react-native/actions
[3]: https://circleci.com/gh/fbluemle/sampleapp-react-native.svg?style=shield
[4]: https://circleci.com/gh/fbluemle/sampleapp-react-native
[5]: https://travis-ci.org/fbluemle/sampleapp-react-native.svg?branch=master
[6]: https://travis-ci.org/fbluemle/sampleapp-react-native

0 comments on commit 520b8ee

Please sign in to comment.