Skip to content

Commit

Permalink
Add Teamcity Build (#39)
Browse files Browse the repository at this point in the history
Fixes #38
  • Loading branch information
bobbyg603 authored Jun 17, 2021
1 parent fb49425 commit 94238ec
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 8 deletions.
83 changes: 76 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"types": "index.d.ts",
"scripts": {
"test": "ts-node --project spec/tsconfig.spec.json node_modules/jasmine/bin/jasmine --config=spec/support/jasmine.json",
"test:teamcity": "ts-node --project spec/tsconfig.spec.json node_modules/jasmine/bin/jasmine --config=spec/support/jasmine.teamcity.json",
"e2e": "ts-node --project spec/tsconfig.spec.json node_modules/jasmine/bin/jasmine --config=spec/support/jasmine.e2e.json",
"e2e:teamcity": "ts-node --project spec/tsconfig.spec.json node_modules/jasmine/bin/jasmine --config=spec/support/jasmine.teamcity.e2e.json",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json"
Expand Down Expand Up @@ -36,10 +38,11 @@
"form-data": "^3.0.0"
},
"devDependencies": {
"@bugsplat/js-api-client": "^0.0.3",
"@bugsplat/js-api-client": "^0.0.6",
"@types/jasmine": "^3.6.2",
"@types/node": "^14.14.16",
"jasmine": "^3.6.3",
"jasmine-reporters": "^2.4.0",
"ts-node": "^9.1.1",
"typescript": "^4.1.3"
}
Expand Down
11 changes: 11 additions & 0 deletions spec/support/jasmine.teamcity.e2e.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"spec_dir": "spec",
"spec_files": [
"bugsplat.e2e.spec.ts"
],
"helpers": [
"./support/teamcity.ts"
],
"stopSpecOnExpectationFailure": false,
"random": true
}
11 changes: 11 additions & 0 deletions spec/support/jasmine.teamcity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"spec_dir": "spec",
"spec_files": [
"bugsplat.spec.ts"
],
"helpers": [
"./support/teamcity.ts"
],
"stopSpecOnExpectationFailure": false,
"random": true
}
2 changes: 2 additions & 0 deletions spec/support/teamcity.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { TeamCityReporter } from 'jasmine-reporters';
jasmine.getEnv().addReporter(new TeamCityReporter());

0 comments on commit 94238ec

Please sign in to comment.