mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 20:44:19 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b30357568 | |||
| 034e9da69e |
+35
-6
@@ -26,7 +26,7 @@ before_script:
|
|||||||
- apt-get install -y libgd-dev
|
- apt-get install -y libgd-dev
|
||||||
- apt-get install -y libgd-dev
|
- apt-get install -y libgd-dev
|
||||||
|
|
||||||
# Install PDO MySQL extension
|
# Install PDO MySQL extension
|
||||||
- docker-php-ext-install pdo_mysql
|
- docker-php-ext-install pdo_mysql
|
||||||
|
|
||||||
#install php dependencies
|
#install php dependencies
|
||||||
@@ -70,8 +70,8 @@ npm:
|
|||||||
#building assets
|
#building assets
|
||||||
building_assets:
|
building_assets:
|
||||||
stage: building_assets
|
stage: building_assets
|
||||||
# dependencies:
|
# dependencies:
|
||||||
# - npm
|
# - npm
|
||||||
script:
|
script:
|
||||||
- npm install # Install npm dependencies
|
- npm install # Install npm dependencies
|
||||||
- gulp build # Build assets
|
- gulp build # Build assets
|
||||||
@@ -84,8 +84,8 @@ database:
|
|||||||
services:
|
services:
|
||||||
- name: mysql:8.0
|
- name: mysql:8.0
|
||||||
command: [ "--default-authentication-plugin=mysql_native_password" ]
|
command: [ "--default-authentication-plugin=mysql_native_password" ]
|
||||||
#dependencies:
|
#dependencies:
|
||||||
# - composer_php
|
# - composer_php
|
||||||
script:
|
script:
|
||||||
- composer install
|
- composer install
|
||||||
- cp .env.example .env
|
- cp .env.example .env
|
||||||
@@ -95,7 +95,7 @@ database:
|
|||||||
rules:
|
rules:
|
||||||
- if: '$CI_COMMIT_BRANCH =~ /.*/'
|
- if: '$CI_COMMIT_BRANCH =~ /.*/'
|
||||||
|
|
||||||
#mysql
|
#unit test
|
||||||
unit_test:
|
unit_test:
|
||||||
stage: unit_test
|
stage: unit_test
|
||||||
services:
|
services:
|
||||||
@@ -117,4 +117,33 @@ unit_test:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#acceptance tests
|
||||||
|
acceptance_test:
|
||||||
|
stage: acceptance_test
|
||||||
|
services:
|
||||||
|
- name: mysql:8.0
|
||||||
|
command: [ "--default-authentication-plugin=mysql_native_password" ]
|
||||||
|
- selenium/standalone-chrome:latest
|
||||||
|
#dependencies:
|
||||||
|
# - database
|
||||||
|
script:
|
||||||
|
- npm install # Install npm dependencies
|
||||||
|
- gulp build # Build assets
|
||||||
|
- composer install
|
||||||
|
- cp .env.example .env
|
||||||
|
- php artisan key:generate
|
||||||
|
- php artisan migrate:fresh
|
||||||
|
- php artisan db:seed
|
||||||
|
- php artisan serve &
|
||||||
|
- vendor/bin/codecept run
|
||||||
|
artifacts:
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- tests/_output
|
||||||
|
rules:
|
||||||
|
- if: '$CI_COMMIT_BRANCH =~ /.*/'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"default": {
|
||||||
|
"capabilities": {
|
||||||
|
"browserName": "chrome"
|
||||||
|
},
|
||||||
|
"port": 9515,
|
||||||
|
"path": "/wd/hub"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,7 +16,6 @@ class AuthenticationTest extends TestCase
|
|||||||
protected $loginRoute = 'api.account.authentication.authenticate.attempt';
|
protected $loginRoute = 'api.account.authentication.authenticate.attempt';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test Authenticated Users can not Access the login page
|
* Test Authenticated Users can not Access the login page
|
||||||
* TODO fix this test
|
* TODO fix this test
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ class RegistrationTest extends TestCase
|
|||||||
{
|
{
|
||||||
use RefreshDatabase;
|
use RefreshDatabase;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* public function test_create_invitation_request_test()
|
/* public function test_create_invitation_request_test()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user