File: run_tests.sh

Recommend this page to a friend!
  Classes of Nguyen Duc Thuan  >  AWS SQS Wrapper  >  run_tests.sh  >  Download  
File: run_tests.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: AWS SQS Wrapper
Publish and subscribe message queues using AWS SQS
Author: By
Last change: Analyze after install
Reorganise scripts
Add composer scripts
Date: 1 year ago
Size: 736 bytes
 

 

Contents

Class file image Download
#!/usr/bin/env bash

set -ex

function cleanup() {
   docker-compose down
}

trap cleanup EXIT

docker-compose up -d

docker-compose exec -T composer composer install --ignore-platform-reqs --no-scripts
docker-compose exec -T composer composer analyze

docker-compose exec -T netcat sh wait_for.sh localstack:4576 -t 60

docker-compose exec -T awscli aws --no-sign-request --endpoint-url http://localstack:4576 --region fake sqs create-queue --queue-name test-queue
docker-compose exec -T awscli aws --no-sign-request --endpoint-url http://localstack:4576 --region fake sqs purge-queue --queue-url http://localstack:4576/queue/test-queue

for phpver in php70 php71 php72; do
    docker-compose exec -T ${phpver} vendor/bin/phpunit
done

For more information send a message to info at phpclasses dot org.