From 5538a638f5e4c405eda67c17d43950dfd08b0bce Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Mon, 18 Nov 2019 13:55:11 -0800 Subject: [PATCH 1/9] Add Travis CI integration --- .travis.yml | 37 +++++++++++++++++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ea51e87 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,37 @@ +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 12.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-.+ + environment: + GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2" + TERM: dumb + 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: ./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 diff --git a/README.md b/README.md index 0c559bf..0057b86 100644 --- a/README.md +++ b/README.md @@ -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 From 373045b720ec4cf300a466f8a39f0cc41da4b4bd Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Mon, 18 Nov 2019 16:18:22 -0800 Subject: [PATCH 2/9] [commit 2702] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ea51e87..65f13f1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,4 +34,4 @@ jobs: 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 + script: xcodebuild -workspace "rnsampleapp.xcworkspace" -scheme "rnsampleapp" -destination "platform=iOS Simulator,name=iPhone 11,OS=13.0" build | xcpretty From df30ea28251bb97449a645148f4f332d6729cee3 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Mon, 18 Nov 2019 16:18:57 -0800 Subject: [PATCH 3/9] [commit 2737] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 65f13f1..81dd99d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ jobs: - android-sdk-license-.+ environment: GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.workers.max=2" - TERM: dumb + TERM: "dumb" before_script: - echo no | android create avd -f -n test -t android-22 -b armeabi-v7a - emulator -avd test -no-audio -no-window & From cba16ba2a9697e8cd795e9b73e58fce1d97e29c0 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Mon, 18 Nov 2019 16:25:10 -0800 Subject: [PATCH 4/9] [commit 3110] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 81dd99d..90370c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,4 +34,4 @@ jobs: before_script: - cd ios/ - pod install - script: xcodebuild -workspace "rnsampleapp.xcworkspace" -scheme "rnsampleapp" -destination "platform=iOS Simulator,name=iPhone 11,OS=13.0" build | xcpretty + script: xcodebuild -workspace "rnsampleapp.xcworkspace" -scheme "rnsampleapp" -destination "platform=iOS Simulator,name=iPhone X,OS=11.4" build | xcpretty From eacffe17f03ea615f14b507db6951b447b4becdc Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Mon, 18 Nov 2019 16:28:09 -0800 Subject: [PATCH 5/9] [commit 3289] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 90370c7..057d5d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,4 +34,4 @@ jobs: before_script: - cd ios/ - pod install - script: xcodebuild -workspace "rnsampleapp.xcworkspace" -scheme "rnsampleapp" -destination "platform=iOS Simulator,name=iPhone X,OS=11.4" build | xcpretty + script: xcodebuild -workspace "rnsampleapp.xcworkspace" -scheme "rnsampleapp" -destination "platform=iOS Simulator,name=iPhone X,OS=11.4" build | xcpretty && exit ${PIPESTATUS[0]} From d5a9903794e82d17c399f93fa5c55fc1f45c354c Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Tue, 19 Nov 2019 18:50:43 -0800 Subject: [PATCH 6/9] [commit 8243] --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 057d5d8..510f4e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,6 +31,7 @@ jobs: script: ./gradlew connectedCheck - language: objective-c osx_image: xcode10.3 + before_install: gem install cocoapods -v '1.8.4' before_script: - cd ios/ - pod install From 8ac0fbc7b589b03ba83b21af2b57c85673367d53 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Wed, 20 Nov 2019 10:19:56 -0800 Subject: [PATCH 7/9] [commit 3996] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 510f4e4..98f23c7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -31,8 +31,8 @@ jobs: script: ./gradlew connectedCheck - language: objective-c osx_image: xcode10.3 - before_install: gem install cocoapods -v '1.8.4' before_script: + - gem install cocoapods -v '1.8.4' - cd ios/ - pod install script: xcodebuild -workspace "rnsampleapp.xcworkspace" -scheme "rnsampleapp" -destination "platform=iOS Simulator,name=iPhone X,OS=11.4" build | xcpretty && exit ${PIPESTATUS[0]} From ca006e57d03337b949cf51f0a08aaecad83143af Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Wed, 20 Nov 2019 10:36:49 -0800 Subject: [PATCH 8/9] [commit 5009] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 98f23c7..393b4bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ jobs: - cd android/ script: ./gradlew connectedCheck - language: objective-c - osx_image: xcode10.3 + osx_image: xcode11.2 before_script: - gem install cocoapods -v '1.8.4' - cd ios/ From f75f28cdd14adfdb98a648352bc74c04d4604916 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Wed, 27 Nov 2019 10:07:58 -0800 Subject: [PATCH 9/9] [commit 8078] --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 393b4bb..8ca4d73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,4 +35,4 @@ jobs: - gem install cocoapods -v '1.8.4' - cd ios/ - pod install - script: xcodebuild -workspace "rnsampleapp.xcworkspace" -scheme "rnsampleapp" -destination "platform=iOS Simulator,name=iPhone X,OS=11.4" build | xcpretty && exit ${PIPESTATUS[0]} + script: xcodebuild -workspace rnsampleapp.xcworkspace -scheme rnsampleapp -destination "platform=iOS Simulator,name=iPhone X,OS=11.4" | xcpretty && exit ${PIPESTATUS[0]}