Skip to content

Commit 693dcac

Browse files
committed
gl ci
1 parent 057fc98 commit 693dcac

File tree

3 files changed

+58
-3
lines changed

3 files changed

+58
-3
lines changed

.env.test.example

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
APP_NAME=Larajs
2+
APP_ENV=local
3+
APP_KEY=base64:Sr4hllHGnQPaSFuOlji5vueM9DksuwWcw4ct7WD9/CA=
4+
APP_DEBUG=true
5+
APP_URL=http://local.larajs.com
6+
LARAJS_USE_ESLINT=true
7+
8+
LOG_CHANNEL=stack
9+
10+
DB_CONNECTION=mysql
11+
DB_HOST=mysql
12+
DB_PORT=3306
13+
DB_DATABASE=homestead
14+
DB_USERNAME=root
15+
DB_PASSWORD=secret
16+
17+
BROADCAST_DRIVER=log
18+
CACHE_DRIVER=file
19+
QUEUE_CONNECTION=sync
20+
SESSION_DRIVER=file
21+
SESSION_LIFETIME=120
22+
23+
REDIS_HOST=127.0.0.1
24+
REDIS_PASSWORD=null
25+
REDIS_PORT=6379
26+
27+
MAIL_DRIVER=smtp
28+
MAIL_HOST=smtp.gmail.com
29+
MAIL_PORT=587
30+
MAIL_USERNAME=
31+
MAIL_PASSWORD=
32+
MAIL_ENCRYPTION=tls
33+
MAIL_FROM_ADDRESS=
34+
MAIL_FROM_NAME="${APP_NAME}"
35+
36+
AWS_ACCESS_KEY_ID=
37+
AWS_SECRET_ACCESS_KEY=
38+
AWS_DEFAULT_REGION=us-east-1
39+
AWS_BUCKET=
40+
41+
PUSHER_APP_ID=
42+
PUSHER_APP_KEY=
43+
PUSHER_APP_SECRET=
44+
PUSHER_APP_CLUSTER=mt1
45+
BASE_API=/api/v1
46+
47+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
48+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
49+
MIX_BASE_API="${BASE_API}"
50+
MIX_APP_URL="${APP_URL}"
51+
52+
PASSPORT_LOGIN_ENDPOINT="${APP_URL}/oauth/token"
53+
PASSPORT_CLIENT_ID="2"
54+
PASSPORT_CLIENT_SECRET="secret"

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ stages:
2525
unit_test:
2626
stage: test
2727
script:
28-
- cp .env.example .env
28+
- cp .env.test.example .env
2929
- composer install
3030
- php artisan key:generate
31+
- php artisan migrate
3132
- vendor/bin/phpunit
3233

3334
deploy_dev:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Set the base image for subsequent instructions
2-
FROM php:7.2
2+
FROM php:7.3
33

44
# Update packages
55
RUN apt-get update
@@ -12,7 +12,7 @@ RUN apt-get clean
1212

1313
# Install needed extensions
1414
# Here you can install any other extension that you need during the test and deployment process
15-
RUN docker-php-ext-install pdo_mysql zip
15+
RUN docker-php-ext-install pdo_mysql
1616

1717
# Install Composer
1818
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

0 commit comments

Comments
 (0)