Refactor CI

Closes #98

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2019-03-22 11:37:58 +01:00
parent d3f2e49395
commit 7a4197a444
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773

View File

@ -1,6 +1,7 @@
image: tcitworld/mobilizon-ci
stages:
- deps
- front
- back
- deploy
@ -19,6 +20,28 @@ variables:
MOBILIZON_DATABASE_HOST: $POSTGRES_HOST
GEOLITE_CITIES_PATH: "/usr/share/GeoIP/GeoLite2-City.mmdb"
setup_elixir_deps:
stage: deps
script:
- mix deps.get
- mix compile
cache:
paths:
- deps
- _build
setup_js_deps:
stage: deps
before_script:
- cd js
script:
- npm install
after_script:
- cd ../
cache:
paths:
- js/node_modules
js:
stage: front
before_script: