forked from coopcycle/coopcycle-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (52 loc) · 1.36 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
matrix:
include:
- language: node_js
env: LANE='node'
node_js: 8
cache: yarn
- language: android
env: LANE='android'
sudo: required
jdk: oraclejdk8
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.yarn-cache"
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
android:
components:
- tools
- platform-tools
- build-tools-27.0.3
- android-27
- extra-google-google_play_services
before_install:
- nvm install 8
before_script:
- npm install -g yarn
- yarn install
- cp google-services.json.dist android/app/google-services.json
script:
- cd android && ./gradlew clean && ./gradlew assembleDebug --stacktrace
- language: objective-c
env: LANE='ios'
os: osx
osx_image: xcode9.1
node_js: 8
xcode_project: CoopCycle.xcodeproj
xcode_scheme: CoopCycleTests
cache:
- bundler
- yarn
before_install:
- gem install xcpretty
- npm install -g yarn
- yarn install
- cd ios
script:
- xcodebuild -workspace CoopCycle.xcworkspace -scheme CoopCycle -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty && exit ${PIPESTATUS[0]}
notifications:
email: false