index.community/.gitlab-ci.yml

67 lines
1.2 KiB
YAML
Raw Normal View History

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:
refs:
- develop
changes:
- backend/*
script:
2019-07-17 20:09:45 +00:00
- git-push ssh://dokku@api-develop.fediverse.space:22/phoenix
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:
refs:
- develop
changes:
- gephi/*
script:
2019-07-17 20:09:45 +00:00
- git-push ssh://dokku@api-develop.fediverse.space:22/gephi