Skip to content

Commit 0e41f3f

Browse files
authored
Merge pull request #56 from Morgul/fix-unit-tests
Update .travis.yml
2 parents f268c0c + 0917788 commit 0e41f3f

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: node_js
2+
dist: xenial
23
node_js:
3-
- "5.9"
4+
- 10
45
env:
56
- CXX=g++-4.8
67
addons:
@@ -11,9 +12,7 @@ addons:
1112
- g++-4.8
1213

1314
before_install:
14-
- export DISPLAY=:99.0
15-
- sh -e /etc/init.d/xvfb start
1615
- npm install --quiet -g karma
1716

18-
script: grunt
17+
script: xvfb-run grunt
1918
sudo: false

Gruntfile.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -432,27 +432,27 @@ module.exports = function(grunt) {
432432

433433
return;
434434

435-
const versionsMappingFile = 'dist/versions-mapping.json';
436-
437-
exec('git tag --sort -version:refname', function(error, stdout, stderr) {
438-
// Let's remove the oldest 56 versions.
439-
const versions = stdout.split('\n').slice(0, -56);
440-
let jsContent = versions.map(function(version) {
441-
version = version.replace(/^v/, '');
442-
return {
443-
version: version,
444-
url: `/ui-bootstrap4/versioned-docs/${version}/index.html`
445-
};
446-
});
447-
jsContent = _.sortBy(jsContent, 'version').reverse();
448-
jsContent.unshift({
449-
version: 'Current',
450-
url: '/ui-bootstrap4/index.html'
451-
});
452-
grunt.file.write(versionsMappingFile, JSON.stringify(jsContent));
453-
grunt.log.writeln(`File ${versionsMappingFile.cyan} created.`);
454-
done();
455-
});
435+
// const versionsMappingFile = 'dist/versions-mapping.json';
436+
437+
// exec('git tag --sort -version:refname', function(error, stdout, stderr) {
438+
// // Let's remove the oldest 56 versions.
439+
// const versions = stdout.split('\n').slice(0, -56);
440+
// let jsContent = versions.map(function(version) {
441+
// version = version.replace(/^v/, '');
442+
// return {
443+
// version: version,
444+
// url: `/ui-bootstrap4/versioned-docs/${version}/index.html`
445+
// };
446+
// });
447+
// jsContent = _.sortBy(jsContent, 'version').reverse();
448+
// jsContent.unshift({
449+
// version: 'Current',
450+
// url: '/ui-bootstrap4/index.html'
451+
// });
452+
// grunt.file.write(versionsMappingFile, JSON.stringify(jsContent));
453+
// grunt.log.writeln(`File ${versionsMappingFile.cyan} created.`);
454+
// done();
455+
// });
456456

457457
});
458458

0 commit comments

Comments
 (0)