readme and settings updated

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 7 years ago
parent dde7044e18
commit 934b2ed5a2
  1. 1
      BuildServer/app.ts.example
  2. 2
      BuildServer/lib/index.ts
  3. 2
      BuildServer/lib/routes/manual.ts
  4. 2
      BuildServer/tsconfig.json
  5. 48
      README.md

@ -29,6 +29,7 @@ const settings: Settings = {
},
eslintBrowserConfig: join(__dirname, "settings-eslint-browser.json"),
faviconpath: join(__dirname, "public/images/favicon.png"),
githubSiteRoot: "github.enterprise.host",
gitpath: "M:/g",
ignoreCodeAnalysisByDefault: true,
isCodeAnalysisUnsupported: false,

@ -48,7 +48,7 @@ const run = (settings: Settings) => {
.post(routes.manual.post);
app.route("/status/:owner/:reponame/:branch/:rev?").get(routes.status.page);
app.route("/pos-github.payonline.ru/*").get(routes.status.pageFromGithub);
app.route(`/${settings.githubSiteRoot}/*`).get(routes.status.pageFromGithub);
app.route("/status.svg").get(routes.status.image);
app.route("/release/:owner/:reponame/:branch/:rev").get(routes.release);
app.route("/artifact/:owner/:reponame/:branch/:rev/*").get(routes.artifact);

@ -13,7 +13,7 @@ export const post: express.RequestHandler = (req, res) => {
const options = {
...req.body,
url: `https://pos-github.payonline.ru/${req.body.owner}/${req.body.reponame}`,
url: `https://${settings.githubSiteRoot}/${req.body.owner}/${req.body.reponame}`,
};
build(settings, options, (err: string, result: ReportResult) => {

@ -12,7 +12,7 @@
"es7"
],
"noEmitOnError": true,
"noImplicitAny": true,
"noImplicitAny": false,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,

@ -1,2 +1,48 @@
micro-build-server
micro-build-server
==================
Разработка
==========
Установить Node.js v6.
Запустить `npm install` из папки `BuildServer`.
Создать `app.ts` на основе `app.ts.example`.
Для проверки code style / типов использовать `npm test`.
Установка на сервере
====================
Установить Node.js v6.
Скопировать на сервер собранный проект (содержимое папки `bin\Release`) `DotNetBuilder`.
Установить в GAC сборки `Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed` (можно взять из релиза 6.0.4 с NuGet), `Microsoft.VisualStudio.Setup.Configuration.Interop, PublicKeyToken=b03f5f7f11d50a3a`.
Склонировать репозиторий (`git clone`).
Запустить `npm install` из папки `BuildServer`.
Создать `app.ts` на основе `app.ts.example` (для использования в IIS надо указать `port: process.env["PORT"]`).
Пути `gitpath`, `releasepath`, `tmpcodepath` должны быть максимально короткими.
Проверить, что `app.ts` правильный с помощью `npm test`.
Собрать с помощью `npm build` или `npm run build`.
Запускать с помощью `npm start` или `node app`.
Для использования в IIS - установить iisnode, создать в iis сайт, указывающий на корневую папку `BuildServer` (в которой лежит `Web.config`).
Возможно, в зависимости от сценариев использования, также понадобится установить на сервер Microsoft .NET Targeting Pack и Windows SDK нужной версии.
Обновление сервера
==================
```
git pull origin master
npm test
npm run build
```

Loading…
Cancel
Save