mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
🔨 test the build with gitlab CI
This commit is contained in:
parent
d9301559ef
commit
41fd153991
@ -2,7 +2,8 @@
|
|||||||
image: node:latest
|
image: node:latest
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- pages
|
- build
|
||||||
|
# - pages
|
||||||
- test
|
- test
|
||||||
# - e2e
|
# - e2e
|
||||||
|
|
||||||
@ -10,38 +11,36 @@ cache:
|
|||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
|
|
||||||
pages:
|
#pages:
|
||||||
stage: pages
|
# stage: pages
|
||||||
script:
|
# script:
|
||||||
- yarn install --pure-lockfile
|
# - yarn install --pure-lockfile
|
||||||
- yarn build:prod:gitlabpage
|
# - yarn build:prod:gitlabpage
|
||||||
- mv dist/framadate/ public/
|
# - mv dist/framadate/ public/
|
||||||
artifacts:
|
# artifacts:
|
||||||
paths:
|
# paths:
|
||||||
- public
|
# - public
|
||||||
expire_in: '2 hours'
|
# expire_in: '2 hours'
|
||||||
only:
|
# only:
|
||||||
- develop
|
# - develop
|
||||||
|
|
||||||
test:
|
#test:
|
||||||
stage: test
|
# stage: test
|
||||||
script:
|
# script:
|
||||||
- npm i
|
# - npm i
|
||||||
- pkill Xvfb
|
# - pkill Xvfb
|
||||||
- npm run test:ci
|
# - npm run test:ci
|
||||||
artifacts:
|
# artifacts:
|
||||||
paths:
|
# paths:
|
||||||
- coverage/
|
# - coverage/
|
||||||
cache:
|
# cache:
|
||||||
policy: pull
|
# policy: pull
|
||||||
|
|
||||||
test-build:
|
build:
|
||||||
stage: test
|
stage: build
|
||||||
script:
|
script:
|
||||||
- yarn install --pure-lockfile
|
- yarn install --pure-lockfile
|
||||||
- npx ng build --prod
|
- npx ng build --prod
|
||||||
only:
|
|
||||||
- master
|
|
||||||
cache:
|
cache:
|
||||||
policy: pull
|
policy: pull
|
||||||
|
|
||||||
|
@ -5,16 +5,6 @@
|
|||||||
<mat-form-field appearance="outline">
|
<mat-form-field appearance="outline">
|
||||||
<mat-label>Titre</mat-label>
|
<mat-label>Titre</mat-label>
|
||||||
<input #title matInput placeholder="Question posée, sujet" formControlName="title" required />
|
<input #title matInput placeholder="Question posée, sujet" formControlName="title" required />
|
||||||
<button
|
|
||||||
mat-button
|
|
||||||
*ngIf="question.value"
|
|
||||||
matSuffix
|
|
||||||
mat-icon-button
|
|
||||||
aria-label="Clear"
|
|
||||||
(click)="question.value = ''"
|
|
||||||
>
|
|
||||||
<i class="fa fa-close"></i>
|
|
||||||
</button>
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field appearance="outline" class="is-flex">
|
<mat-form-field appearance="outline" class="is-flex">
|
||||||
|
@ -6,6 +6,7 @@ const backendApiUrlsInDev = {
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: true,
|
production: true,
|
||||||
appTitle: 'FramaDate',
|
appTitle: 'FramaDate',
|
||||||
|
appVersion: '2.0.0',
|
||||||
appLogo: '/assets/img/logo.png',
|
appLogo: '/assets/img/logo.png',
|
||||||
api: {
|
api: {
|
||||||
baseHref: backendApiUrlsInDev.remote,
|
baseHref: backendApiUrlsInDev.remote,
|
||||||
|
@ -10,6 +10,7 @@ const backendApiUrlsInDev = {
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
appTitle: 'FramaDate',
|
appTitle: 'FramaDate',
|
||||||
|
appVersion: '2.0.0',
|
||||||
appLogo: 'assets/img/logo.png',
|
appLogo: 'assets/img/logo.png',
|
||||||
api: {
|
api: {
|
||||||
baseHref: backendApiUrlsInDev.local,
|
baseHref: backendApiUrlsInDev.local,
|
||||||
|
Loading…
Reference in New Issue
Block a user