Skip to content

Commit

Permalink
Merge pull request #84 from Promact/ImproveBuildTimeUsingYarn
Browse files Browse the repository at this point in the history
Improve build issue
  • Loading branch information
chintans committed Dec 23, 2016
2 parents ead44aa + fc263fd commit 985b54a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Slack.Automation/Promact.Erp.Web/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function (config) {
'node_modules/systemjs/dist/system.src.js',

// Zone.js dependencies

'node_modules/zone.js/dist/zone.js',
'node_modules/zone.js/dist/proxy.js',
'node_modules/zone.js/dist/sync-test.js',
Expand Down Expand Up @@ -58,18 +58,18 @@ module.exports = function (config) {

// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
//preprocessors: {
// "**/app/*spec.js": "coverage"
//},
preprocessors: {
"**/app/*spec.js": "coverage"
},

// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress', 'coverage', 'coveralls'],

coverageReporter: {
type: 'lcov', // lcov or lcovonly are required for generating lcov.info files
dir: 'coverage/'
reporters: [
{ type: 'lcov', subdir: '.', file: 'lcov.info' }]
},

// proxied base paths
Expand Down
8 changes: 4 additions & 4 deletions Slack.Automation/Promact.Erp.Web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
"karma-htmlfile-reporter": "0.3.4",
"karma-jasmine": "1.0.2",
"lite-server": "2.2.2",
"lodash": "4.16.4",
"lodash": "4.16.6",
"protractor": "4.0.10",
"remap-istanbul": "0.7.0",
"rimraf": "2.5.4",
"systemjs": "0.19.40",
"tslint": "3.15.1",
"typescript": "2.0.6",
"typings": "1.4.0"
"typescript": "2.0.8",
"typings": "2.0.0"
},
"repository": {}
}
}
6 changes: 4 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ environment:
nodejs_version: "0.12"
COVERALLS_REPO_TOKEN:
secure: IzBCZbWnAF8/KBbmUT7D7L8kzbEkFsvEeKPY2I0C537SeYlruZUCDR19I2kSdb5A
cache:
- "%LOCALAPPDATA%\\Yarn"
build_script:
- cmd: "nuget restore \".\\Slack.Automation\\Promact.ERP.sln\"\nnpm install -g typings \ncd \".\\Slack.Automation\\Promact.Erp.Web\"\nnpm install\ncd \"..\\..\"\nmsbuild \".\\Slack.Automation\\Promact.ERP.sln\" /m /verbosity:minimal /logger:\"C:\\Program Files\\AppVeyor\\BuildAgent\\Appveyor.MSBuildLogger.dll\" /p:Optimize=False"
- cmd: "nuget restore \".\\Slack.Automation\\Promact.ERP.sln\"\nnpm i -g yarn && yarn global add typescript typings\ncd \".\\Slack.Automation\\Promact.Erp.Web\"\nyarn\ncd \"..\\..\"\nmsbuild \".\\Slack.Automation\\Promact.ERP.sln\" /m /verbosity:minimal /logger:\"C:\\Program Files\\AppVeyor\\BuildAgent\\Appveyor.MSBuildLogger.dll\" /p:Optimize=False"
build:
project: .\Slack.Automation\Promact.ERP.sln
parallel: true
Expand All @@ -26,5 +28,5 @@ test_script:
& $coveralls --opencover -i opencoverCoverage.xml --repoToken $env:COVERALLS_REPO_TOKEN --commitId $env:APPVEYOR_REPO_COMMIT --commitBranch $env:APPVEYOR_REPO_BRANCH --commitAuthor $env:APPVEYOR_REPO_COMMIT_AUTHOR --commitEmail $env:APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL --commitMessage $env:APPVEYOR_REPO_COMMIT_MESSAGE --jobId $env:APPVEYOR_JOB_ID
}
- cd ./Slack.Automation/Promact.Erp.Web
- npm test
- npm test

0 comments on commit 985b54a

Please sign in to comment.