Skip to content
Snippets Groups Projects
Commit 77adf555 authored by Wilson JALLET's avatar Wilson JALLET :money_with_wings:
Browse files

Séparation install et build

parent 1ec91505
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ cache:
- ldap_connexion_config.json
stages:
- install
- build
- test
- deploy
......@@ -22,22 +23,30 @@ stages:
# Install dependencies, compile the bundle.js,
# make migrations on and seed the db
install-dependencies:
stage: install
script:
- npm install
artifacts:
paths:
- build/
- node_modules/
expire_in: 240 min
tags:
- build
build:
stage: build
script:
- npm install
- npm run build
- knex migrate:latest
- knex seed:run
artifacts:
paths:
- ldap_connexion_config.json
- build/
- node_modules/
expire_in: 240 min
tags:
- database
- build
- database
# Run ESLint to analyse our JS code
test:lint:
......@@ -47,7 +56,7 @@ test:lint:
tags:
- lint
deploy_staging:
deploy-staging:
stage: deploy
only:
- master
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment