Compare commits
1 Commits
master
...
test-travi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7169fa3934 |
39
.travis.yml
Normal file
39
.travis.yml
Normal 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
16
examples/Makefile
Normal 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
|
||||
|
||||
BIN
examples/android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
examples/android/gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
5
examples/android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
5
examples/android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal 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
2
package-lock.json
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "react-native-fingerprint-scanner",
|
||||
"version": "2.6.1",
|
||||
"version": "3.0.0",
|
||||
"lockfileVersion": 1
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user