stages: - build #testes: # stage: test # script: # - echo "Executanto testes automatizados" # - export RAILS_ENV="test" # - rbenv install -s # - if ! rbenv which bundle; then gem install bundler --no-ri --no-rdoc; rbenv rehash; fi # - bundle install # - rspec spec # tags: # - tester build: stage: build script: - if ! rbenv shell 2.7.3; then rbenv install -s 2.7.3; rbenv rehash; fi - if ! rbenv which bundle; then gem install bundler --no-ri --no-rdoc; rbenv rehash; fi - bundle install - rake build - rake release # - rake force_release only: - /^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}$/ tags: - deployer