Updated scripts for CI (#380)

This commit is contained in:
Jesus Federico
2019-02-25 15:33:05 -05:00
committed by GitHub
parent c60e25f71c
commit fff8a52cc2
4 changed files with 29 additions and 12 deletions

View File

@ -13,11 +13,9 @@ test:
- bundle install --path /cache
- bundle exec rake db:create RAILS_ENV=test
- bundle exec rake test & bundle exec rspec & bundle exec rubocop
only:
refs:
- branches
except:
variables:
- $GITLAB_TEST
- $CD_TEST_IGNORE
build:
stage: build
@ -34,7 +32,11 @@ build:
- ./scripts/image_build.sh $CI_PROJECT_PATH $CI_COMMIT_REF_NAME $CI_COMMIT_SHA
only:
variables:
- $GITLAB_BUILD
- $CD_DOCKER_USERNAME
- $CD_DOCKER_PASSWORD
except:
variables:
- $CD_BUILD_IGNORE
deploy:
stage: deploy
@ -53,4 +55,9 @@ deploy:
refs:
- branches
variables:
- $GITLAB_DEPLOY
- $CD_DOCKER_USERNAME
- $CD_DOCKER_PASSWORD
- $CD_DEPLOY_SCRIPT
except:
variables:
- $CD_DEPLOY_IGNORE