Skip to content

Commit

Permalink
[CI][docker] prepare required context (#4136)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Sep 2, 2020
1 parent 70a6448 commit 17548de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .ci/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ convert-tests-results: ## convert TAP test results to JUnit
sh -c 'npm install tap-xunit -g && cat target/results.tap | tap-xunit --package="co.elastic.pipeline.$${APP}" > target/junit-$${APP}-results.xml'

test-golang-mage: prepare-test ## Run the tests for the specific app
cp ../../go.mod golang-mage
cp -f ../../go.* golang-mage
mkdir -p golang-mage/approvaltest && cp -f ../../approvaltest/go.* golang-mage/approvaltest
mkdir -p golang-mage/systemtest && cp -f ../../systemtest/go.* golang-mage/systemtest
@DOCKERFILE=golang-mage bats-core/bin/bats --tap tests | tee target/results.tap
@$(MAKE) -s convert-tests-results

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/.ci/docker/bats-core
/.ci/docker/tests/test_helper
/.ci/docker/target
/.ci/docker/golang-mage/go.*
/.ci/docker/golang-mage/approvaltest/
/.ci/docker/golang-mage/systemtest/
**/*.idea
/build
/data
Expand Down

0 comments on commit 17548de

Please sign in to comment.