forked from wix/react-native-navigation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (37 loc) · 777 Bytes
/
.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
language: java
jdk:
- oraclejdk8
env:
global:
- NODE_VERSION=stable
- ANDROID_HOME=$HOME/android-sdk-linux
- PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
git:
depth: 3
branches:
only:
- master
cache:
directories:
- $HOME/.yarn-cache
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.m2
- $ANDROID_HOME/licenses/
before_cache:
- rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
before_install:
- set -e
- ./scripts/clean.sh
install:
- nvm install $NODE_VERSION
- npm i -g yarn
- yarn
script:
- yarn run lint
- yarn run test:js
- ./scripts/installAndroidSDK.sh
- yarn run test:android
after_script:
- echo "BUILD FINISHED"