Skip to content
Snippets Groups Projects
Commit c3ecf7f4 authored by Israel Barreto Sant'Anna's avatar Israel Barreto Sant'Anna
Browse files

Merge branch 'gitlab-ci' into 'master'

api document script

See merge request portalmec/portalmec!521
parents 89a6e36f c03b8698
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ variables: ...@@ -17,6 +17,7 @@ variables:
stages: stages:
- test - test
- apidoc
- deploy - deploy
before_script: before_script:
...@@ -43,10 +44,23 @@ test: ...@@ -43,10 +44,23 @@ test:
- elasticsearch - elasticsearch
- redis - redis
doc:
stage: apidoc
script:
- bundle exec rake db:migrate:reset RAILS_ENV=test
- bundle exec rake docs:generate
- ./docploy.sh
only:
- stable
tags:
- ruby
- postgres
- elasticsearch
- redis
# deploy: # deploy:
# stage: deploy # stage: deploy
# script: # script:
# - mina deploy # # - mina deploy
# only: # only:
# - master # - master
# tags: # tags:
......
#!/bin/bash
# Copyright (C) 2015 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana
#
# This file is part of portalmec.
#
# portalmec is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# portalmec is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with portalmec. If not, see <http://www.gnu.org/licenses/>.
eval "$(ssh-agent -s)"
ssh-add <(echo "$SSH_KEY_PROD")
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r /builds/portalmec/portalmec/doc/ $SSH_HOST_PROD:/home/portalmec/
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment