-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added validation test * fixed test * fixed wrong test dir path * fixed comment * added comments and updated format version * update comments * updated with PR change requests
- Loading branch information
Showing
4 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
format_version: 7 | ||
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | ||
|
||
workflows: | ||
test-deploy-dir-structure-check: | ||
description: | | ||
Check if test result dir is under test deploy dir | ||
steps: | ||
- script: | ||
inputs: | ||
- content: |- | ||
if [[ "$(dirname $BITRISE_TEST_RESULT_DIR)" != "$BITRISE_TEST_DEPLOY_DIR" ]]; then exit 1; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package integration | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/bitrise-io/go-utils/command" | ||
) | ||
|
||
func Test_DeployDirStructure(t *testing.T) { | ||
t.Log("check test deploy dir structure") | ||
{ | ||
configPth := "test_deploy_structure_check.yml" | ||
|
||
cmd := command.New(binPath(), "run", "test-deploy-dir-structure-check", "--config", configPth) | ||
out, err := cmd.RunAndReturnTrimmedCombinedOutput() | ||
if err != nil { | ||
t.Fatal(err, out) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters