hiradimir / ant-salesforce-ci

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ant-salesforce-ci

disabled force-checkOnly option since ant-salesforce-co@1.36.4

Current target for ant-salesforce version 39

CircleCI

extended deploy:ant-salesforce

Usually use empty DE edition to target for deploy.

Then you get test/coverage result.

I think to using together Jenkins.

How to build

build

$ sbt assembly

How to create IDE settings

$ sbt eclipse

task

  1. deployForCI

option

  1. sfc.testResultFile (default:target/sforceci/test-result.xml)
  2. sfc.coverageResultFile (default:target/sforceci/coverage.xml)
  3. sfc.coverageReportClassNameFilter (coverage.xml className filter regex. default:".*")
  4. sfc.sobjectPlural (true:add pluralLabel, false:nothing to do, default=false)
  5. sfc.noErrorOnTestFail (control raise testFail error of ant-task, true: not-raised error on fail, false: raised error on fail. default=false)
  6. sfc.noErrorOnCoveargeWarning (control raise coverageWarning at 75% sfdc on ant-task, true: not-raised error on fail, false: raised error on fail. default=false)

sample

$ ant -lib target/scala-2.11 -f ForceComSample/build.xml deployForCI

Sample Jenkins ScreenShot

Jenkins-Top

jenkins-top.png

Test-Result

test-failure-top.png

Test-Failure-Detail

test-failure-detail.png

Coverage-Top

coverage-top.png

Coverage-Classses(package)

coverage-classes.png

Coverage-Class(sample Util.cls)

coverage-class-util.png

Copyright 2012-2016 hiradimir

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About


Languages

Language:Scala 63.0%Language:Apex 37.0%