Skip to content

Commit 25de585

Browse files
phillbakerfkotsian
authored andcommitted
Add testing on travis.
1 parent 04640c4 commit 25de585

File tree

5 files changed

+61
-1
lines changed

5 files changed

+61
-1
lines changed

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
env:
2+
- NODE_ENV='test'
3+
cache:
4+
directories:
5+
- $HOME/.gradle/caches/
6+
- $HOME/.gradle/wrapper/
7+
matrix:
8+
include:
9+
- language: objective-c
10+
os: osx
11+
xcode_sdk: iphonesimulator12.2
12+
osx_image: xcode10.2
13+
sudo: true
14+
before_install:
15+
- brew install node@10
16+
- cd examples && make install # install node modules to get podfiles
17+
install:
18+
- cd ios && pod install && cd ..
19+
script:
20+
- make test-ios
21+
- language: android
22+
android:
23+
components:
24+
- tools
25+
- platform-tools
26+
- build-tools-28.0.3
27+
- android-28
28+
sudo: true
29+
before_install:
30+
- nvm install --lts
31+
install: true
32+
script:
33+
- cd examples && make test-android
34+
- language: node_js
35+
node_js: lts/*
36+
sudo: false
37+
install:
38+
- cd examples && npm ci
39+
script: react-native bundle --entry-file index.js --bundle-output main.jsbundle

examples/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
all: test-ios
2+
install:
3+
npm ci
4+
clean:
5+
cd android && ./gradlew clean
6+
test-ios: install build-ios
7+
build-ios:
8+
cd ios && xcodebuild clean build -scheme examples \
9+
-workspace examples.xcworkspace \
10+
-configuration Debug -sdk iphonesimulator \
11+
CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""
12+
test-android: install build-android
13+
build-android:
14+
cd android && chmod +x ./gradlew && TERM=dumb ./gradlew assembleDebug --stacktrace
15+
.PHONY: all
16+
54.3 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)