From 4027f87717bb68c309bd5e41e42607cffe624f35 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Thu, 14 Nov 2019 03:36:23 +0800 Subject: [PATCH] migrate to GitHub Actions (#3586) --- .github/workflows/ci.yml | 12 +++---- .github/workflows/ufuzz.yml | 8 ++--- .travis.yml | 46 ------------------------ appveyor.yml | 71 +------------------------------------ test/ufuzz/travis.js | 44 ----------------------- 5 files changed, 11 insertions(+), 170 deletions(-) delete mode 100644 .travis.yml delete mode 100644 test/ufuzz/travis.js diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f1cc28b..4b2c8639 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,13 +18,13 @@ jobs: with: path: tmp key: tmp ${{ matrix.script }} - - shell: bash + - name: Perform tests + shell: bash run: | - git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs - . ~/.nvs/nvs.sh - nvs --version - nvs add node/$NODE - nvs use node/$NODE + git clone --branch v1.5.3 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs + . ~/.nvs/nvs.sh --version + nvs add $NODE + nvs use $NODE node --version npm --version --no-update-notifier npm install --no-audit --no-optional --no-save --no-update-notifier diff --git a/.github/workflows/ufuzz.yml b/.github/workflows/ufuzz.yml index bf307a11..0137ca88 100644 --- a/.github/workflows/ufuzz.yml +++ b/.github/workflows/ufuzz.yml @@ -12,11 +12,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v1 - - shell: bash + - name: Perform fuzzing + shell: bash run: | - git clone --branch v1.5.2 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs - . ~/.nvs/nvs.sh - nvs --version + git clone --branch v1.5.3 --depth 1 https://github.com/jasongin/nvs.git ~/.nvs + . ~/.nvs/nvs.sh --version nvs add node nvs use node node --version diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index df4fad05..00000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/appveyor.yml b/appveyor.yml index 1df58fad..df3aba71 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,74 +1,5 @@ build: off -cache: - - tmp matrix: 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: - - node test/%TYPE% + - echo No longer in use diff --git a/test/ufuzz/travis.js b/test/ufuzz/travis.js deleted file mode 100644 index 0c1b8c7c..00000000 --- a/test/ufuzz/travis.js +++ /dev/null @@ -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 [branch] [repository] [concurrency] [platform]"); -} -- 2.34.1