mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use TEST_JUNIT_XML_ROOT instead of the CircleCI-specific root
This commit is contained in:
@@ -3,6 +3,7 @@ machine:
|
||||
XCODE_SCHEME: test
|
||||
XCODE_WORKSPACE: test
|
||||
XCODE_PROJECT: test
|
||||
TEST_JUNIT_XML_ROOT: ${CIRCLE_TEST_REPORTS}
|
||||
|
||||
xcode:
|
||||
version: 7.3
|
||||
|
||||
@@ -35,10 +35,10 @@ if (process.platform === 'darwin') {
|
||||
function prepareEnv (suiteName) {
|
||||
const env = {}
|
||||
|
||||
if (process.env.CIRCLE_TEST_REPORTS) {
|
||||
// CircleCI
|
||||
// Tell Jasmine to output this suite's results to the directory that Circle expects to find JUnit XML files in.
|
||||
const outputPath = path.join(process.env.CIRCLE_TEST_REPORTS, suiteName, 'test-results.xml')
|
||||
if (process.env.TEST_JUNIT_XML_ROOT) {
|
||||
// Tell Jasmine to output this suite's results as a JUnit XML file to a subdirectory of the root, so that a
|
||||
// CI system can interpret it.
|
||||
const outputPath = path.join(process.env.TEST_JUNIT_XML_ROOT, suiteName, 'test-results.xml')
|
||||
env.TEST_JUNIT_XML_PATH = outputPath
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user