debianize-mobilizon/.gitlab-ci.yml

60 lines
958 B
YAML
Raw Normal View History

image: tcitworld/mobilizon-ci
2018-01-13 23:35:11 +01:00
stages:
- front
- back
2018-01-13 23:35:11 +01:00
variables:
MIX_ENV: "test"
POSTGRES_DB: mobilizon_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_HOST: postgres
GEOLITE_CITIES_PATH: "/usr/share/GeoIP/GeoLite2-City.mmdb"
js:
stage: front
before_script:
- cd js
- npm install
script:
- npm run build
after_script:
- cd ../
cache:
paths:
- js/node_modules
artifacts:
paths:
- priv/static
untracked: false
expire_in: 30 days
elixir_format:
stage: back
before_script:
- mix deps.get
script:
- mix format --check-formatted --dry-run
cache:
paths:
- deps
2018-01-13 23:35:11 +01:00
mix:
stage: back
services:
- name: mdillon/postgis:10
alias: postgres
dependencies:
- js
before_script:
- mix deps.get
- MIX_ENV=test mix ecto.create
- MIX_ENV=test mix ecto.migrate
2018-01-13 23:35:11 +01:00
script:
- mix coveralls
cache:
paths:
- deps
- _build