mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Remove Travis CI (#42507)
* Remove Travis CI * Revert deletion of cron stuff * Fix formatting
This commit is contained in:
28
.travis.yml
28
.travis.yml
@@ -1,28 +0,0 @@
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- 'node'
|
||||
- '12'
|
||||
- '10'
|
||||
|
||||
env:
|
||||
- workerCount=3 timeout=600000
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /^release-.*/
|
||||
|
||||
install:
|
||||
- npm uninstall typescript --no-save
|
||||
- npm ci
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
|
||||
git:
|
||||
depth: 1
|
||||
16
Gulpfile.js
16
Gulpfile.js
@@ -5,7 +5,6 @@ const log = require("fancy-log");
|
||||
const newer = require("gulp-newer");
|
||||
const sourcemaps = require("gulp-sourcemaps");
|
||||
const del = require("del");
|
||||
const fold = require("travis-fold");
|
||||
const rename = require("gulp-rename");
|
||||
const concat = require("gulp-concat");
|
||||
const merge2 = require("merge2");
|
||||
@@ -346,9 +345,6 @@ const runEslintRulesTests = () => runConsoleTests("scripts/eslint/built/tests",
|
||||
task("run-eslint-rules-tests", series(buildEslintRules, runEslintRulesTests));
|
||||
task("run-eslint-rules-tests").description = "Runs the eslint rule tests";
|
||||
|
||||
const lintFoldStart = async () => { if (fold.isTravis()) console.log(fold.start("lint")); };
|
||||
const lintFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("lint")); };
|
||||
|
||||
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
|
||||
const eslint = (folder) => async () => {
|
||||
|
||||
@@ -374,20 +370,20 @@ const eslint = (folder) => async () => {
|
||||
|
||||
const lintScripts = eslint("scripts");
|
||||
lintScripts.displayName = "lint-scripts";
|
||||
task("lint-scripts", series([buildEslintRules, lintFoldStart, lintScripts, lintFoldEnd]));
|
||||
task("lint-scripts", series([buildEslintRules, lintScripts]));
|
||||
task("lint-scripts").description = "Runs eslint on the scripts sources.";
|
||||
|
||||
const lintCompiler = eslint("src");
|
||||
lintCompiler.displayName = "lint-compiler";
|
||||
task("lint-compiler", series([buildEslintRules, lintFoldStart, lintCompiler, lintFoldEnd]));
|
||||
task("lint-compiler", series([buildEslintRules, lintCompiler]));
|
||||
task("lint-compiler").description = "Runs eslint on the compiler sources.";
|
||||
task("lint-compiler").flags = {
|
||||
" --ci": "Runs eslint additional rules",
|
||||
};
|
||||
|
||||
const lint = series([buildEslintRules, lintFoldStart, lintScripts, lintCompiler, lintFoldEnd]);
|
||||
const lint = series([buildEslintRules, lintScripts, lintCompiler]);
|
||||
lint.displayName = "lint";
|
||||
task("lint", series([buildEslintRules, lintFoldStart, lint, lintFoldEnd]));
|
||||
task("lint", series([buildEslintRules, lint]));
|
||||
task("lint").description = "Runs eslint on the compiler and scripts sources.";
|
||||
task("lint").flags = {
|
||||
" --ci": "Runs eslint additional rules",
|
||||
@@ -429,9 +425,7 @@ const buildOtherOutputs = parallel(buildCancellationToken, buildTypingsInstaller
|
||||
task("other-outputs", series(preBuild, buildOtherOutputs));
|
||||
task("other-outputs").description = "Builds miscelaneous scripts and documents distributed with the LKG";
|
||||
|
||||
const buildFoldStart = async () => { if (fold.isTravis()) console.log(fold.start("build")); };
|
||||
const buildFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("build")); };
|
||||
task("local", series(buildFoldStart, preBuild, parallel(localize, buildTsc, buildServer, buildServices, buildLssl, buildOtherOutputs), buildFoldEnd));
|
||||
task("local", series(preBuild, parallel(localize, buildTsc, buildServer, buildServices, buildLssl, buildOtherOutputs)));
|
||||
task("local").description = "Builds the full compiler and services";
|
||||
task("local").flags = {
|
||||
" --built": "Compile using the built version of the compiler."
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
# TypeScript
|
||||
|
||||
[](https://travis-ci.org/microsoft/TypeScript)
|
||||
[](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI)
|
||||
[](https://dev.azure.com/typescript/TypeScript/_build?definitionId=7)
|
||||
[](https://www.npmjs.com/package/typescript)
|
||||
[](https://www.npmjs.com/package/typescript)
|
||||
|
||||
12
package-lock.json
generated
12
package-lock.json
generated
@@ -632,12 +632,6 @@
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"@types/travis-fold": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/travis-fold/-/travis-fold-0.1.0.tgz",
|
||||
"integrity": "sha512-qrXB0Div8vIzA8P809JRlh9lD4mSOYwRBJbU1zcj0BWhULP15Zx0oQyJtjaOnkNR5RZcYQDbgimj40M1GDmhcQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/undertaker": {
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@types/undertaker/-/undertaker-1.2.3.tgz",
|
||||
@@ -7858,12 +7852,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"travis-fold": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/travis-fold/-/travis-fold-0.1.2.tgz",
|
||||
"integrity": "sha1-/sAF+dyqJZo/lFnOWmkGq6TFRdo=",
|
||||
"dev": true
|
||||
},
|
||||
"tsconfig-paths": {
|
||||
"version": "3.9.0",
|
||||
"resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz",
|
||||
|
||||
@@ -52,7 +52,6 @@
|
||||
"@types/q": "latest",
|
||||
"@types/source-map-support": "latest",
|
||||
"@types/through2": "latest",
|
||||
"@types/travis-fold": "latest",
|
||||
"@types/xml2js": "^0.4.0",
|
||||
"@typescript-eslint/eslint-plugin": "4.5.0",
|
||||
"@typescript-eslint/experimental-utils": "4.5.0",
|
||||
@@ -95,7 +94,6 @@
|
||||
"remove-internal": "^2.9.2",
|
||||
"source-map-support": "latest",
|
||||
"through2": "latest",
|
||||
"travis-fold": "latest",
|
||||
"typescript": "^4.0.0-dev.20200624",
|
||||
"vinyl": "latest",
|
||||
"vinyl-sourcemaps-apply": "latest",
|
||||
|
||||
@@ -262,4 +262,4 @@ namespace Harness {
|
||||
}
|
||||
|
||||
startTestEnvironment();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user