Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
138 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,46 @@ | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- libstdc++-4.9-dev | ||
cache: | ||
directories: tmp | ||
language: generic | ||
matrix: | ||
fast_finish: true | ||
sudo: false | ||
env: | ||
global: | ||
- UGLIFYJS_TEST_ALL=1 | ||
matrix: | ||
- NODEJS_VER=node/0.10 | ||
- NODEJS_VER=node/0.12 | ||
- NODEJS_VER=node/4 | ||
- NODEJS_VER=node/6 | ||
- NODEJS_VER=node/8 | ||
- NODEJS_VER=node/10 | ||
- NODEJS_VER=node/latest | ||
- NODE=0.10 TYPE=compress | ||
- NODE=0.10 TYPE=mocha | ||
- NODE=0.10 TYPE=release/benchmark | ||
- NODE=0.10 TYPE=release/jetstream | ||
- NODE=0.12 TYPE=compress | ||
- NODE=0.12 TYPE=mocha | ||
- NODE=0.12 TYPE=release/benchmark | ||
- NODE=0.12 TYPE=release/jetstream | ||
- NODE=4 TYPE=compress | ||
- NODE=4 TYPE=mocha | ||
- NODE=4 TYPE=release/benchmark | ||
- NODE=4 TYPE=release/jetstream | ||
- NODE=6 TYPE=compress | ||
- NODE=6 TYPE=mocha | ||
- NODE=6 TYPE=release/benchmark | ||
- NODE=6 TYPE=release/jetstream | ||
- NODE=8 TYPE=compress | ||
- NODE=8 TYPE=mocha | ||
- NODE=8 TYPE=release/benchmark | ||
- NODE=8 TYPE=release/jetstream | ||
- NODE=10 TYPE=compress | ||
- NODE=10 TYPE=mocha | ||
- NODE=10 TYPE=release/benchmark | ||
- NODE=10 TYPE=release/jetstream | ||
- NODE=latest TYPE=compress | ||
- NODE=latest TYPE=mocha | ||
- NODE=latest TYPE=release/benchmark | ||
- NODE=latest TYPE=release/jetstream | ||
before_install: | ||
- git clone --branch v1.4.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs | ||
- git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs | ||
- . ~/.nvs/nvs.sh | ||
- nvs --version | ||
install: | ||
- nvs add $NODEJS_VER | ||
- nvs use $NODEJS_VER | ||
- nvs add node/$NODE | ||
- nvs use node/$NODE | ||
- node --version | ||
- npm --version --no-update-notifier | ||
- npm install --no-optional --no-save --no-update-notifier | ||
- npm install --no-audit --no-optional --no-save --no-update-notifier | ||
script: | ||
- npm test --no-update-notifier | ||
- node test/$TYPE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,74 @@ | ||
build: off | ||
cache: | ||
- tmp | ||
matrix: | ||
fast_finish: true | ||
environment: | ||
UGLIFYJS_TEST_ALL: 1 | ||
matrix: | ||
- NODEJS_VER: node/0.10 | ||
- NODEJS_VER: node/0.12 | ||
- NODEJS_VER: node/4 | ||
- NODEJS_VER: node/6 | ||
- NODEJS_VER: node/8 | ||
- NODEJS_VER: node/10 | ||
- NODEJS_VER: node/latest | ||
- NODE: 0.10 | ||
TYPE: compress | ||
- NODE: 0.10 | ||
TYPE: mocha | ||
- NODE: 0.10 | ||
TYPE: release/benchmark | ||
- NODE: 0.10 | ||
TYPE: release/jetstream | ||
- NODE: 0.12 | ||
TYPE: compress | ||
- NODE: 0.12 | ||
TYPE: mocha | ||
- NODE: 0.12 | ||
TYPE: release/benchmark | ||
- NODE: 0.12 | ||
TYPE: release/jetstream | ||
- NODE: 4 | ||
TYPE: compress | ||
- NODE: 4 | ||
TYPE: mocha | ||
- NODE: 4 | ||
TYPE: release/benchmark | ||
- NODE: 4 | ||
TYPE: release/jetstream | ||
- NODE: 6 | ||
TYPE: compress | ||
- NODE: 6 | ||
TYPE: mocha | ||
- NODE: 6 | ||
TYPE: release/benchmark | ||
- NODE: 6 | ||
TYPE: release/jetstream | ||
- NODE: 8 | ||
TYPE: compress | ||
- NODE: 8 | ||
TYPE: mocha | ||
- NODE: 8 | ||
TYPE: release/benchmark | ||
- NODE: 8 | ||
TYPE: release/jetstream | ||
- NODE: 10 | ||
TYPE: compress | ||
- NODE: 10 | ||
TYPE: mocha | ||
- NODE: 10 | ||
TYPE: release/benchmark | ||
- NODE: 10 | ||
TYPE: release/jetstream | ||
- NODE: latest | ||
TYPE: compress | ||
- NODE: latest | ||
TYPE: mocha | ||
- NODE: latest | ||
TYPE: release/benchmark | ||
- NODE: latest | ||
TYPE: release/jetstream | ||
install: | ||
- git clone --branch v1.4.2 --depth 1 https://github.com/jasongin/nvs.git %LOCALAPPDATA%\nvs | ||
- git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git %LOCALAPPDATA%\nvs | ||
- set PATH=%LOCALAPPDATA%\nvs;%PATH% | ||
- nvs --version | ||
- nvs add %NODEJS_VER% | ||
- nvs use %NODEJS_VER% | ||
- nvs add node/%NODE% | ||
- nvs use node/%NODE% | ||
- node --version | ||
- npm --version --no-update-notifier | ||
- npm install --no-optional --no-save --no-update-notifier | ||
build: off | ||
cache: | ||
- tmp | ||
matrix: | ||
fast_finish: true | ||
- npm install --no-audit --no-optional --no-save --no-update-notifier | ||
test_script: | ||
- npm test --no-update-notifier | ||
- node test/%TYPE% |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require("./run")([ | ||
"-b", | ||
"-b braces", | ||
"-m", | ||
"-mc passes=3", | ||
"-mc passes=3,toplevel", | ||
"-mc passes=3,unsafe", | ||
"-mc keep_fargs=false,passes=3", | ||
"-mc keep_fargs=false,passes=3,pure_getters,unsafe,unsafe_comps,unsafe_math,unsafe_proto", | ||
].map(function(options) { | ||
var args = options.split(/ /); | ||
args.unshift("test/benchmark.js"); | ||
return args; | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require("./run")([ | ||
"-mc", | ||
"-mc keep_fargs=false,passes=3,pure_getters,unsafe,unsafe_comps,unsafe_math,unsafe_proto", | ||
].map(function(options) { | ||
var args = options.split(/ /); | ||
args.unshift("test/jetstream.js"); | ||
args.push("-b", "beautify=false,webkit"); | ||
return args; | ||
})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var child_process = require("child_process"); | ||
|
||
module.exports = function(tasks) { | ||
(function next() { | ||
if (!tasks.length) return; | ||
var args = tasks.shift(); | ||
console.log(); | ||
console.log("\u001B[36m$> " + args.join(" ") + "\u001B[39m"); | ||
var result = child_process.spawn(process.argv[0], args, { | ||
stdio: [ "ignore", 1, 2 ] | ||
}).on("exit", function(code) { | ||
if (code != 0) process.exit(code); | ||
next(); | ||
}); | ||
})(); | ||
}; |