-
Notifications
You must be signed in to change notification settings - Fork 242
/
.travis.yml
34 lines (33 loc) · 1.06 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
language: objective-c
cache: cocoapods
sudo: false
osx_image: xcode7.3
rvm: 2.2.0
git:
depth: 10
before_install:
- npm cache clean -f
- npm install -g n
- n stable
- node --version
- gem install activesupport -v '4.2.6'
- gem install cocoapods -v '1.0.1'
- pod setup
install:
- git clone https://github.com/apache/cordova-js --depth 10
- cd cordova-lib
- npm link ../cordova-js
- npm link ../cordova-common
- npm link ../cordova-serve
- (cd ../cordova-fetch && npm link ../cordova-common && npm install)
- npm link ../cordova-fetch
- npm install
# Workaround for npm/npm#10343 when dependency of linked module is moved to dependent
# module's 'node_modules' In our case 'cordova-common' -> jshint' -> 'cli' dependency
# is moved to 'cordova-lib' and hence 'npm run jshint' on 'cordova-common' is failing
- "(cd ../cordova-common && npm install)"
- (cd ../cordova-fetch && npm install && npm link ../cordova-common)
script:
- "(cd ../cordova-common && npm test)"
- "(cd ../cordova-fetch && npm test)"
- "npm run ci-ios"