-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
61 lines (55 loc) · 1.04 KB
/
.gitlab-ci.yml
File metadata and controls
61 lines (55 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
image: gitlab.dev.ifs.hsr.ch:45023/epj/2020/pwire/pwire-frontend:latest
services:
- mysql:5.7
variables:
MYSQL_DATABASE: homestead
MYSQL_ROOT_PASSWORD: secret
DB_HOST: mysql
DB_USERNAME: root
stages:
- test
- build
- deploy
unit_test:
stage: test
script:
- cp .env.testing .env
- composer install
- php artisan key:generate
- php artisan migrate
- vendor/bin/phpunit --coverage-text --colors=never
- npm install
- npm run prod
- npm test --ci --coverage
build:
stage: build
script:
- composer install --optimize-autoloader --no-dev
- npm install
- npm run prod
artifacts:
paths:
- artisan
- laravel-echo-server.json
- .env.example
- composer.json
- composer.lock
- package.json
- package-lock.json
- vendor
- storage
- routes
- resources
- public
- database
- config
- tests
- app
- bootstrap
- server.php
expire_in: 1 week
deploy:
stage: deploy
only:
- master
trigger: epj/2020/pwire/pwire-installer