Compare commits

...

1 Commits

Author SHA1 Message Date
Phillip Baker
7169fa3934 Add testing on travis. 2019-08-29 23:39:57 -04:00
5 changed files with 61 additions and 1 deletions

39
.travis.yml Normal file
View File

@ -0,0 +1,39 @@
env:
- NODE_ENV='test'
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
matrix:
include:
- language: objective-c
os: osx
xcode_sdk: iphonesimulator12.2
osx_image: xcode10.2
sudo: true
before_install:
- brew install node@10
- cd examples && make install # install node modules to get podfiles
install:
- cd ios && pod install && cd ..
script:
- make test-ios
- language: android
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
sudo: true
before_install:
- nvm install --lts
install: true
script:
- cd examples && make test-android
- language: node_js
node_js: lts/*
sudo: false
install:
- cd examples && npm ci
script: react-native bundle --entry-file index.js --bundle-output main.jsbundle

16
examples/Makefile Normal file
View File

@ -0,0 +1,16 @@
all: test-ios
install:
npm ci
clean:
cd android && ./gradlew clean
test-ios: install build-ios
build-ios:
cd ios && xcodebuild clean build -scheme examples \
-workspace examples.xcworkspace \
-configuration Debug -sdk iphonesimulator \
CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""
test-android: install build-android
build-android:
cd android && chmod +x ./gradlew && TERM=dumb ./gradlew assembleDebug --stacktrace
.PHONY: all

Binary file not shown.

View File

@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

2
package-lock.json generated
View File

@ -1,5 +1,5 @@
{
"name": "react-native-fingerprint-scanner",
"version": "2.6.1",
"version": "3.0.0",
"lockfileVersion": 1
}