forked from futurice/pepperoni-app-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (64 loc) · 1.93 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
language: node_js
node_js:
- "6.9"
- "7.1"
sudo: false
cache:
directories:
- $HOME/.yarn-cache
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
env:
- NODE_ENV='test'
script:
- cp env.example.js env.js
- npm run lint
- npm test
- npm run bundle:ios
matrix:
include:
- language: android
os: linux
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
sudo: required
node_js: false
before_install:
- nvm install 7
- node --version
- travis_retry curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get install -y -qq yarn
install:
- yarn
android:
components:
- build-tools-23.0.1
- android-23
- extra-android-m2repository
- extra-google-google_play_services
- extra-google-m2repository
- addon-google_apis-google-16
script:
- cd android && ./gradlew assembleDebug && ./gradlew assembleRelease
- language: objective-c
os: osx
osx_image: xcode8.2
node_js: false
before_install:
- nvm install 7
- node --version
- travis_retry npm install -g yarn
- yarn -version
install:
- travis_retry gem install xcpretty
- travis_retry yarn
xcode_project: ios/PepperoniAppTemplate.xcodeproj
xcode_scheme: ios/PepperoniAppTemplateTests
script:
- cd ios
- xcodebuild -scheme PepperoniAppTemplate -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
- travis_retry xctool run-tests -scheme PepperoniAppTemplate -sdk iphonesimulator -launch-timeout 90 ONLY_ACTIVE_ARCH=NO