Skip to content

Commit a0adc6a

Browse files
authored
Merge pull request krausest#201 from alexteves/travis-use-yarn
Use yarn and node 7 in travis
2 parents aa8695b + 0863ea5 commit a0adc6a

File tree

5 files changed

+481
-12
lines changed

5 files changed

+481
-12
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ marko-*/static
4848
marko-*/build
4949
marko-*/src/xtable.marko
5050

51-
yarn.lock
51+
# keep root yarn.lock in repo so that travis will install yarn
52+
yarn.lock
53+
!/yarn.lock
54+
5255
package-lock.json
5356

5457
# angular 2 aot

.travis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
language: node_js
2-
node_js:
3-
- "node"
4-
install:
5-
- npm install
6-
script:
7-
- npm run build-prod
1+
language : node_js
2+
node_js : 7
3+
cache : yarn
4+
install : yarn
5+
script : npm run build-prod

install.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ var installCommand = 'npm install';
77

88
var excludedDirectories = ['css', 'dist','node_modules','webdriver-java'];
99

10-
// commandExists('yarn', function(err, commandExists) {
10+
commandExists('yarn', function(err, commandExists) {
1111

12-
// installCommand = commandExists ? 'yarn' : 'npm install';
12+
installCommand = commandExists ? 'yarn' : 'npm install';
1313

1414
_.each(fs.readdirSync('.'), function(name) {
1515
if(fs.statSync(name).isDirectory() && name[0] !== '.' && excludedDirectories.indexOf(name)==-1) {
@@ -20,4 +20,4 @@ var excludedDirectories = ['css', 'dist','node_modules','webdriver-java'];
2020
});
2121
}
2222
});
23-
// });
23+
});

webdriver-ts-results/src/Common.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
var jStat:any = require('jstat').jStat;
2+
var jStat:any = require('jStat').jStat;
33

44
export interface Framework {
55
name: string;

0 commit comments

Comments
 (0)