-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
49 lines (49 loc) · 1.87 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
matrix:
include:
- language: node_js
node_js: "8"
cache:
directories:
- node_modules
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- npm install
script:
- npm run test
- npm run build
env:
- CXX=g++-4.8
after_success:
- npm run coverage
- language: objective-c
os: osx
osx_image: xcode9.2
xcode_project: ios/SyrNative/SyrNative.xcodeproj
script:
- xcodebuild test -project ios/SyrNative/SyrNative.xcodeproj -scheme SyrNativeUnitTests -destination 'platform=iOS Simulator,name=iPhone 8,OS=11.0.1'
- language: android
before_install: cd android # move to correct project path for android
android:
components:
- platform-tools
- tools
- build-tools-28.0.3
- android-22
- sys-img-armeabi-v7a-android-22 # we are using a api 22 image to run our tests for now
- extra-android-m2repository
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
before_script:
# Create and start emulator
- android list targets # list pre-installed targets # <---- list all installed targets
- android list sdk --no-ui --all --extended | grep -E '^id:' | awk -F '"' '{$1=""; print $2}' # <---- list all available components
- echo y | android update sdk --no-ui --all --filter build-tools-26.0.2,android-22,android-26 # accept licenses explicitly
- echo no | android create avd --force -n test -t android-22 --abi 'default/armeabi-v7a'
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script: ./gradlew build connectedCheck