Permalink
Browse files

Test infra: drop support for io.js, Node.js v0.12 and v5

Fixes #1549
Closes gh-1556
1 parent cf75048 commit 1fe4d8dc4c58033d2d6169134ee1986a469043ea @ariya ariya committed Sep 10, 2016
Showing with 7 additions and 19 deletions.
  1. +0 −3 .travis.yml
  2. +0 −2 circle.yml
  3. +1 −1 package.json
  4. +6 −13 test/downstream.js
View
@@ -2,8 +2,5 @@ sudo: false
language: node_js
script: "npm run travis"
node_js:
- - iojs
- - "0.12"
- "4"
- - "5"
- "6"
View
@@ -1,7 +1,5 @@
machine:
node:
- version:
- 0.12.0
environment:
NO_WATCH_TESTS: 1
View
@@ -13,7 +13,7 @@
"dist/esprima.js"
],
"engines": {
- "node": ">=0.12.0"
+ "node": ">=4"
},
"author": {
"name": "Ariya Hidayat",
View
@@ -88,19 +88,7 @@ function test_project(project, repo) {
}
function test_downstream(projects) {
- var nodejs_version = 'v0.12',
- downstream_path;
-
- if (typeof child_process.execSync !== 'function') {
- console.error('This only works with Node.js that support execSync');
- process.exit(0);
- }
- if (process.version.indexOf(nodejs_version) !== 0) {
- console.error('This is intended to run only with Node.js', nodejs_version);
- process.exit(0);
- }
-
- downstream_path = temp.mkdirSync('downstream');
+ var downstream_path = temp.mkdirSync('downstream');
console.log('Running the tests in', downstream_path);
if (!fs.existsSync(downstream_path)) {
@@ -114,6 +102,11 @@ function test_downstream(projects) {
}
+if (typeof child_process.execSync !== 'function') {
+ console.error('This only works with Node.js that support execSync');
+ process.exit(0);
+}
+
test_downstream({
'escope': 'https://github.com/estools/escope.git',
'esmangle': 'https://github.com/estools/esmangle.git',

0 comments on commit 1fe4d8d

Please sign in to comment.