Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Add integration test for release/2.1.x branch #114

Merged
merged 1 commit into from
Feb 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cicd/helpers/create_env_file.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#create .env file for docker-compose up command
echo "SNAPSHOT_FILE=$(pwd)/snapshots/$(ls snapshots)" > .env
echo "PEER_ADDR=seed.testnet.eos.io:9876" >> .env
echo "DOCKER_EOSIO_TAG=develop" >> .env
echo "DOCKER_EOSIO_TAG=${1:-develop}" >> .env

if [[ "$BUILDKITE" == 'true' ]]; then
echo "DOCKER_HISTORY_TOOLS_TAG=$BUILDKITE_COMMIT" >> .env
Expand Down
6 changes: 4 additions & 2 deletions .cicd/helpers/execute_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function execute-psql-command(){
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

bash $DIR/get_snapshot.sh
bash $DIR/create_env_file.sh
bash $DIR/create_env_file.sh $1

docker-compose up -d

Expand Down Expand Up @@ -41,4 +41,6 @@ do
break
fi
sleep 5
done
done

docker-compose down
14 changes: 12 additions & 2 deletions .cicd/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,19 @@ steps:

- wait

- label: "run integration test"
- label: "run integration test - (eos branch: develop)"
command:
- "./.cicd/helpers/execute_test.sh"
- "./.cicd/helpers/execute_test.sh develop"
agents:
queue: "automation-eks-eos-builder-fleet"
timeout: ${TIMEOUT:-15}
skip: $SKIP_UBUNTU_18

- wait

- label: "run integration test - (eos branch: release/2.1.x)"
command:
- "./.cicd/helpers/execute_test.sh release_2.1.x"
agents:
queue: "automation-eks-eos-builder-fleet"
timeout: ${TIMEOUT:-15}
Expand Down