migrate to GitHub Actions (#3586)
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -18,13 +18,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: tmp
|
path: tmp
|
||||||
key: tmp ${{ matrix.script }}
|
key: tmp ${{ matrix.script }}
|
||||||
- shell: bash
|
- name: Perform tests
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
|
git clone --branch v1.5.3 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
|
||||||
. ~/.nvs/nvs.sh
|
. ~/.nvs/nvs.sh --version
|
||||||
nvs --version
|
nvs add $NODE
|
||||||
nvs add node/$NODE
|
nvs use $NODE
|
||||||
nvs use node/$NODE
|
|
||||||
node --version
|
node --version
|
||||||
npm --version --no-update-notifier
|
npm --version --no-update-notifier
|
||||||
npm install --no-audit --no-optional --no-save --no-update-notifier
|
npm install --no-audit --no-optional --no-save --no-update-notifier
|
||||||
|
|||||||
8
.github/workflows/ufuzz.yml
vendored
8
.github/workflows/ufuzz.yml
vendored
@@ -12,11 +12,11 @@ jobs:
|
|||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- shell: bash
|
- name: Perform fuzzing
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
|
git clone --branch v1.5.3 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
|
||||||
. ~/.nvs/nvs.sh
|
. ~/.nvs/nvs.sh --version
|
||||||
nvs --version
|
|
||||||
nvs add node
|
nvs add node
|
||||||
nvs use node
|
nvs use node
|
||||||
node --version
|
node --version
|
||||||
|
|||||||
46
.travis.yml
46
.travis.yml
@@ -1,46 +0,0 @@
|
|||||||
cache:
|
|
||||||
directories: tmp
|
|
||||||
language: shell
|
|
||||||
matrix:
|
|
||||||
fast_finish: true
|
|
||||||
env:
|
|
||||||
- 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.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs
|
|
||||||
- . ~/.nvs/nvs.sh
|
|
||||||
- nvs --version
|
|
||||||
install:
|
|
||||||
- nvs add node/$NODE
|
|
||||||
- nvs use node/$NODE
|
|
||||||
- node --version
|
|
||||||
- npm --version --no-update-notifier
|
|
||||||
- npm install --no-audit --no-optional --no-save --no-update-notifier
|
|
||||||
script:
|
|
||||||
- node test/$TYPE
|
|
||||||
71
appveyor.yml
71
appveyor.yml
@@ -1,74 +1,5 @@
|
|||||||
build: off
|
build: off
|
||||||
cache:
|
|
||||||
- tmp
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
environment:
|
|
||||||
matrix:
|
|
||||||
- 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.5.2 --depth 1 https://github.com/jasongin/nvs.git %LOCALAPPDATA%\nvs
|
|
||||||
- set PATH=%LOCALAPPDATA%\nvs;%PATH%
|
|
||||||
- nvs --version
|
|
||||||
- nvs add node/%NODE%
|
|
||||||
- nvs use node/%NODE%
|
|
||||||
- node --version
|
|
||||||
- npm --version --no-update-notifier
|
|
||||||
- npm install --no-audit --no-optional --no-save --no-update-notifier
|
|
||||||
test_script:
|
test_script:
|
||||||
- node test/%TYPE%
|
- echo No longer in use
|
||||||
|
|||||||
@@ -1,44 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
|
|
||||||
var child_process = require("child_process");
|
|
||||||
var https = require("https");
|
|
||||||
var url = require("url");
|
|
||||||
|
|
||||||
var period = 45 * 60 * 1000;
|
|
||||||
var wait = 2 * 60 * 1000;
|
|
||||||
if (process.argv.length > 2) {
|
|
||||||
var token = process.argv[2];
|
|
||||||
var branch = process.argv[3] || "v" + require("../../package.json").version;
|
|
||||||
var repository = encodeURIComponent(process.argv[4] || "mishoo/UglifyJS2");
|
|
||||||
var concurrency = process.argv[5] || 1;
|
|
||||||
var platform = process.argv[6] || "latest";
|
|
||||||
(function request() {
|
|
||||||
setTimeout(request, (period + wait) / concurrency);
|
|
||||||
var options = url.parse("https://api.travis-ci.org/repo/" + repository + "/requests");
|
|
||||||
options.method = "POST";
|
|
||||||
options.headers = {
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
"Travis-API-Version": 3,
|
|
||||||
"Authorization": "token " + token
|
|
||||||
};
|
|
||||||
https.request(options, function(res) {
|
|
||||||
console.log("HTTP", res.statusCode);
|
|
||||||
console.log(JSON.stringify(res.headers, null, 2));
|
|
||||||
console.log();
|
|
||||||
res.setEncoding("utf8");
|
|
||||||
res.on("data", console.log);
|
|
||||||
}).on("error", console.error).end(JSON.stringify({
|
|
||||||
request: {
|
|
||||||
message: "ufuzz testing",
|
|
||||||
branch: branch,
|
|
||||||
config: {
|
|
||||||
cache: false,
|
|
||||||
env: "NODE=" + platform,
|
|
||||||
script: "node test/ufuzz/job " + period
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}));
|
|
||||||
})();
|
|
||||||
} else {
|
|
||||||
console.log("Usage: test/ufuzz/travis.js <token> [branch] [repository] [concurrency] [platform]");
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user