Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
Few more fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
shehi committed Apr 17, 2017
1 parent 8e46e13 commit 99d49db
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
10 changes: 4 additions & 6 deletions storage/build/scripts/dev-env/build.sh
Expand Up @@ -15,13 +15,11 @@ docker-compose build

if [ -z ${PHP_VERSION+x} ]; then export PHP_VERSION='7'; fi; # 5|7

if [[ $(docker-compose ps | grep Exit) || $(docker-compose ps | grep Up) ]]; then docker-compose down; fi;

docker-compose down;
docker-compose up -d php${PHP_VERSION}-cli;
docker-compose ps;
docker exec basis_php${PHP_VERSION}-cli_1 \
/bin/bash -c "echo $(docker inspect -f '{{ .NetworkSettings.Networks.basis_default.IPAddress }}' basis_nginxForPhp${PHP_VERSION}_1) basis.audith.org | sudo tee -a /etc/hosts";
export NETWORK_GATEWAY=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.Gateway}}{{end}}' ${COMPOSE_PROJECT_NAME}php${PHP_VERSION}-cli_1);
docker exec ${COMPOSE_PROJECT_NAME}php${PHP_VERSION}-cli_1 \
/bin/bash -c "echo $(docker inspect -f '{{ .NetworkSettings.Networks.basis_default.IPAddress }}' ${COMPOSE_PROJECT_NAME}nginxForPhp${PHP_VERSION}_1) basis.audith.org | sudo tee -a /etc/hosts";

test -f .env || cat .env.example | tee .env > /dev/null 2>&1;

Expand All @@ -30,7 +28,7 @@ test -f .env || cat .env.example | tee .env > /dev/null 2>&1;
# and SAUCE_ACCESS_KEY env variables to the environment for which the next 'docker exec' is being run.
###############################################################################################################

docker exec basis_php${PHP_VERSION}-cli_1 bash -c "
docker exec ${COMPOSE_PROJECT_NAME}php${PHP_VERSION}-cli_1 bash -c "
if [ ! -f ~/.bash_profile ]; then touch ~/.bash_profile; fi;
if [ ! \$(cat ~/.bash_profile | grep SAUCE_) ]; then
echo 'export SAUCE_USERNAME=\"$SAUCE_USERNAME\"' | sudo tee -a ~/.bash_profile;
Expand Down
48 changes: 24 additions & 24 deletions tests/WebUi/SauceWebDriver/AuthenticationTest.php
Expand Up @@ -13,30 +13,30 @@ class AuthenticationTest extends SauceWebDriverTestCase

/** @var array */
public static $browsers = [
[
'browserName' => 'firefox',
'desiredCapabilities' => [
'platform' => 'Linux'
]
],
[
'browserName' => 'chrome',
'desiredCapabilities' => [
'platform' => 'Linux'
]
],
[
'browserName' => 'firefox',
'desiredCapabilities' => [
'platform' => 'macOS 10.12'
]
],
[
'browserName' => 'chrome',
'desiredCapabilities' => [
'platform' => 'macOS 10.12'
]
],
// [
// 'browserName' => 'firefox',
// 'desiredCapabilities' => [
// 'platform' => 'Linux'
// ]
// ],
// [
// 'browserName' => 'chrome',
// 'desiredCapabilities' => [
// 'platform' => 'Linux'
// ]
// ],
// [
// 'browserName' => 'firefox',
// 'desiredCapabilities' => [
// 'platform' => 'macOS 10.12'
// ]
// ],
// [
// 'browserName' => 'chrome',
// 'desiredCapabilities' => [
// 'platform' => 'macOS 10.12'
// ]
// ],
[
'browserName' => 'firefox',
'desiredCapabilities' => [
Expand Down

0 comments on commit 99d49db

Please sign in to comment.