Merge branch 'bug/refactor-ci' into 'master'

Refactor CI

Closes #98

See merge request framasoft/mobilizon!103
This commit is contained in:
Thomas Citharel 2019-03-22 11:45:43 +01:00
commit 0b1845a1fb

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: