File tree Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Expand file tree Collapse file tree 2 files changed +24
-8
lines changed Original file line number Diff line number Diff line change 1
- language : node_js
1
+ os : osx
2
+ osx_image : xcode8.3
2
3
sudo : false
4
+ env :
5
+ matrix :
6
+ - TRAVIS_NODE_VERSION : ' 4'
7
+ - TRAVIS_NODE_VERSION : ' 6'
3
8
git :
4
9
depth : 10
5
- node_js :
6
- - ' 4'
7
- - ' 6'
10
+ before_install :
11
+ - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm
12
+ && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm
13
+ install $TRAVIS_NODE_VERSION
14
+ - node --version
8
15
install :
9
16
- npm install
10
17
script :
Original file line number Diff line number Diff line change 17
17
under the License.
18
18
*/
19
19
var commands = require ( '../src/commands' ) ;
20
+ var os = require ( 'os' ) ;
20
21
21
22
describe ( 'commands end-to-end' , function ( ) {
22
23
23
24
beforeEach ( function ( ) {
24
- commands . init ( ) ;
25
+ if ( os . platform ( ) === 'darwin' ) {
26
+ commands . init ( ) ;
27
+ }
25
28
} ) ;
26
29
27
30
afterEach ( function ( ) {
28
31
} ) ;
29
32
30
33
it ( 'command - showsdks' , function ( ) {
31
- commands . showsdks ( { 'no-output' : true } ) ;
34
+ if ( os . platform ( ) === 'darwin' ) {
35
+ commands . showsdks ( { 'no-output' : true } ) ;
36
+ }
32
37
} ) ;
33
38
34
39
it ( 'command - showdevicetypes' , function ( ) {
35
- commands . showdevicetypes ( { 'no-output' : true } ) ; ;
40
+ if ( os . platform ( ) === 'darwin' ) {
41
+ commands . showdevicetypes ( { 'no-output' : true } ) ;
42
+ }
36
43
} ) ;
37
44
38
45
it ( 'command - launch' , function ( ) {
@@ -47,6 +54,8 @@ describe('commands end-to-end', function() {
47
54
48
55
it ( 'command - start' , function ( ) {
49
56
var devicetypeid = 'iPhone-6' ;
50
- commands . start ( { 'devicetypeid' : devicetypeid } ) ;
57
+ if ( os . platform ( ) === 'darwin' ) {
58
+ commands . start ( { 'devicetypeid' : devicetypeid } ) ;
59
+ }
51
60
} ) ;
52
61
} ) ;
You can’t perform that action at this time.
0 commit comments