()
| 425 | }, |
| 426 | |
| 427 | async publishSite() { |
| 428 | // updates codecept.io website |
| 429 | await processChangelog() |
| 430 | await this.wiki() |
| 431 | |
| 432 | const dir = 'website' |
| 433 | if (fs.existsSync(dir)) { |
| 434 | await exec(`rm -rf ${dir}`) |
| 435 | } |
| 436 | |
| 437 | await git(fn => fn.clone('git@github.com:codeceptjs/website.git', dir)) |
| 438 | await copy('docs', 'website/docs') |
| 439 | |
| 440 | await chdir(dir, async () => { |
| 441 | stopOnFail(false) |
| 442 | await git(fn => { |
| 443 | fn.add('-A') |
| 444 | fn.commit('-m "synchronized with docs"') |
| 445 | fn.pull() |
| 446 | fn.push() |
| 447 | }) |
| 448 | stopOnFail(true) |
| 449 | |
| 450 | await exec('./runok.js publish') |
| 451 | }) |
| 452 | }, |
| 453 | |
| 454 | async server() { |
| 455 | // run test server. Warning! PHP required! |
nothing calls this directly
no test coverage detected