PHP Classes

File: test.sh

Recommend this page to a friend!
  Classes of Gjero Krsteski  >  PHP Nuclear Reactor  >  test.sh  >  Download  
File: test.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Nuclear Reactor
Asynchronous RESTful API using ReactPHP and PIMF
Author: By
Last change: Update of test.sh
Date: 2 years ago
Size: 379 bytes
 

Contents

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

# run tests
docker exec -ti reactphp-pimf-api-container php composer.phar require "codeception/codeception"
tests_response=$(docker exec -ti reactphp-pimf-api-container vendor/codeception/codeception/codecept run --colors)
test_ok=$(echo "$tests_response" | grep "OK" | wc -l)

echo "$tests_response"

if [[ ${test_ok} -ne "1" ]]; then
    exit 1
fi

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