This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (64 loc) · 2.5 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: node_js
android:
components:
# Tools listed twice because doc says it's needed to get updates
# https://docs.travis-ci.com/user/languages/android/
- tools
- platform-tools
- tools
# The BuildTools version used by your project
- build-tools-26.0.1
# The SDK version used to compile your project
- android-19
# Additional components
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image,
# if you need to run emulator(s) during your tests
- sys-img-armeabi-v7a-android-19
matrix:
include:
- os: linux
language: android
sudo: required
dist: trusty
jdk: oraclejdk8
services:
- docker
env:
# Note that on trusty the emulator defaults to qemu2 (at least for
# the image specified), which broke the old -noaudio option so we
# set this environment variable. The reason we specify no audio is:
# "Some Linux and Windows computers have faulty audio drivers that
# cause different symptoms, such as preventing the emulator from
# starting."
# -From https://developer.android.com/studio/run/emulator-commandline.html
- QEMU_AUDIO_DRV=none
script:
# Update all packages
- echo y | sdkmanager --update
# List android targets for debug
- avdmanager list
# Create avd
- echo no | avdmanager create avd -f -n test -k "system-images;android-19;default;armeabi-v7a"
# Launch emulator
- $ANDROID_HOME/emulator/emulator -avd test -no-window &
- android-wait-for-emulator
- travis_wait 30 npm run test-platform -- 'android'
- os: osx
language: objective-c
osx_image: xcode8.3
script:
- travis_wait 30 npm run test-platform -- 'ios'
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install couchdb && brew services start couchdb ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker pull apache/couchdb:1.7.1 && docker run -d -p 5984:5984 apache/couchdb:1.7.1 ; fi
before_script:
# Make sure CouchDB is up
- while [ $? -ne 0 ]; do sleep 1 && curl -v http://localhost:5984; done
# Run setup to replicate animaldb
- ./setup.rb
- nvm install 6
- npm install
# for now only check javascript production source files follow guidelines.
- npm run lint