Skip to content

Commit

Permalink
Added Concourse tasks to run unit and integration tests
Browse files Browse the repository at this point in the history
- Note: Will probably need more changes to use correct Docker image
  • Loading branch information
Jaskanwal Pawar committed Sep 18, 2018
1 parent 18e9a27 commit 8ec15d7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/tasks/run-tests/task.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -eux

echo "Running tests for profile/environment: ${TEST_ENV}"
echo "Running tests with command: ${TEST_COMMAND}"
./gradlew "-Dspring.profiles.active=${TEST_ENV}" "${TEST_COMMAND}"
16 changes: 16 additions & 0 deletions ci/tasks/run-tests/task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
platform: linux
image_resource:
type: docker-image
source:
repository: cfidentity/uaa-postgresql

inputs:
- name: uaa

run:
path: uaa/ci/tasks/run-tests/task.sh

params:
TEST_ENV: ~
TEST_COMMAND: ~

0 comments on commit 8ec15d7

Please sign in to comment.