2019-07-17 20:25:21 +00:00
|
|
|
include:
|
|
|
|
template: Dependency-Scanning.gitlab-ci.yml
|
|
|
|
|
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 18:49:53 +00:00
|
|
|
except:
|
2019-07-13 19:04:52 +00:00
|
|
|
- master
|
|
|
|
only:
|
|
|
|
changes:
|
2019-07-17 13:07:20 +00:00
|
|
|
- frontend/*
|
2019-07-17 16:16:25 +00:00
|
|
|
|
|
|
|
backend-sobelow:
|
|
|
|
stage: test
|
|
|
|
image: elixir:1.9
|
|
|
|
only:
|
|
|
|
changes:
|
|
|
|
- backend/*
|
|
|
|
before_script:
|
|
|
|
- cd backend
|
|
|
|
script:
|
|
|
|
- mix local.hex --force
|
|
|
|
- mix local.rebar --force
|
|
|
|
- mix deps.get
|
|
|
|
- mix deps.compile
|
|
|
|
- mix sobelow --config
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- backend/deps/
|
|
|
|
- backend/_build/
|
|
|
|
|
2019-07-17 13:07:20 +00:00
|
|
|
deploy-backend-develop:
|
|
|
|
stage: deploy
|
2019-07-17 16:16:25 +00:00
|
|
|
environment:
|
|
|
|
name: develop
|
|
|
|
url: https://phoenix.api-develop.fediverse.space
|
2019-07-17 13:07:20 +00:00
|
|
|
image: ilyasemenov/gitlab-ci-git-push
|
|
|
|
only:
|
2019-07-18 10:29:24 +00:00
|
|
|
- develop
|
2019-07-17 13:07:20 +00:00
|
|
|
script:
|
2019-07-18 11:03:22 +00:00
|
|
|
- git-push dokku@api-develop.fediverse.space:phoenix develop
|
2019-07-17 16:16:25 +00:00
|
|
|
|
2019-07-17 13:07:20 +00:00
|
|
|
deploy-gephi-develop:
|
|
|
|
stage: deploy
|
|
|
|
image: ilyasemenov/gitlab-ci-git-push
|
2019-07-17 16:16:25 +00:00
|
|
|
environment:
|
|
|
|
name: develop
|
2019-07-17 13:07:20 +00:00
|
|
|
only:
|
2019-07-18 10:29:24 +00:00
|
|
|
- develop
|
2019-07-17 13:07:20 +00:00
|
|
|
script:
|
2019-07-18 11:03:22 +00:00
|
|
|
- git-push dokku@api-develop.fediverse.space:gephi develop
|