index.community/.gitlab-ci.yml

63 lines
1.1 KiB
YAML
Raw Normal View History

2019-07-13 18:49:53 +00:00
test-frontend:
image: node:lts-alpine
stage: test
before_script:
- cd frontend
stage: test
script:
- yarn install
- yarn lint
cache:
2019-07-13 18:51:53 +00:00
paths:
- frontend/node_modules/
- frontend/.yarn
2019-07-13 19:04:52 +00:00
only:
changes:
2020-05-19 13:50:31 +00:00
- frontend/**/*
2019-07-17 16:16:25 +00:00
2019-08-21 12:30:47 +00:00
test-backend:
2019-07-17 16:16:25 +00:00
stage: test
2020-10-06 15:53:05 +00:00
image: elixir:1.10
2019-08-21 12:30:47 +00:00
variables:
MIX_ENV: test
2019-07-17 16:16:25 +00:00
only:
changes:
2020-05-19 13:50:31 +00:00
- backend/**/*
2019-07-17 16:16:25 +00:00
before_script:
- cd backend
script:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix deps.compile
2019-08-21 12:30:47 +00:00
- mix credo --strict
2019-07-17 16:16:25 +00:00
- mix sobelow --config
cache:
paths:
- backend/deps/
- backend/_build/
2019-07-20 10:33:37 +00:00
deploy-backend-production:
stage: deploy
environment:
name: production
url: https://phoenix.api.fediverse.space
image: ilyasemenov/gitlab-ci-git-push
only:
- master
2019-08-08 11:26:40 +00:00
except:
- schedules
2019-07-20 10:33:37 +00:00
script:
- git-push dokku@api.fediverse.space:phoenix master
deploy-gephi-production:
stage: deploy
image: ilyasemenov/gitlab-ci-git-push
environment:
name: production
only:
- master
2019-08-08 11:26:40 +00:00
except:
- schedules
2019-07-20 10:33:37 +00:00
script:
- git-push dokku@api.fediverse.space:gephi master