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: ...@@ -14,6 +14,7 @@ cache:
- ldap_connexion_config.json - ldap_connexion_config.json
stages: stages:
- install
- build - build
- test - test
- deploy - deploy
...@@ -22,22 +23,30 @@ stages: ...@@ -22,22 +23,30 @@ stages:
# Install dependencies, compile the bundle.js, # Install dependencies, compile the bundle.js,
# make migrations on and seed the db # 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: build:
stage: build stage: build
script: script:
- npm install
- npm run build - npm run build
- knex migrate:latest - knex migrate:latest
- knex seed:run - knex seed:run
artifacts: artifacts:
paths: paths:
- ldap_connexion_config.json
- build/ - build/
- node_modules/
expire_in: 240 min
tags: tags:
- database
- build - build
- database
# Run ESLint to analyse our JS code # Run ESLint to analyse our JS code
test:lint: test:lint:
...@@ -47,7 +56,7 @@ test:lint: ...@@ -47,7 +56,7 @@ test:lint:
tags: tags:
- lint - lint
deploy_staging: deploy-staging:
stage: deploy stage: deploy
only: only:
- master - 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