2019-07-17 20:25:21 +00:00
|
|
|
include:
|
|
|
|
template: Dependency-Scanning.gitlab-ci.yml
|
|
|
|
|
2019-07-20 17:49:32 +00:00
|
|
|
dependency_scanning:
|
2019-08-08 11:24:21 +00:00
|
|
|
only:
|
|
|
|
- schedules
|
2019-07-20 17:49:32 +00:00
|
|
|
|
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:
|
2019-07-17 13:07:20 +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
|
|
|
|
image: elixir:1.9
|
2019-08-21 12:30:47 +00:00
|
|
|
variables:
|
|
|
|
MIX_ENV: test
|
2019-07-17 16:16:25 +00:00
|
|
|
only:
|
|
|
|
changes:
|
|
|
|
- backend/*
|
|
|
|
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-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-08-08 11:26:40 +00:00
|
|
|
except:
|
|
|
|
- schedules
|
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-08-08 11:26:40 +00:00
|
|
|
except:
|
|
|
|
- schedules
|
2019-07-17 13:07:20 +00:00
|
|
|
script:
|
2019-07-20 10:33:37 +00:00
|
|
|
- git-push dokku@api-develop.fediverse.space:gephi develop
|
|
|
|
|
|
|
|
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
|