Skip to content

Commit

Permalink
Staging builds in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
alaxalves committed Jun 6, 2019
1 parent f7e28fc commit f5532a8
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,23 @@ env:
- RAILS_ENV=test
- CI=true
- TRAVIS=true
matrix:
- TASK="bundle exec rake test:unit"
- TASK="bundle exec rake test:integration"
- TASK="bundle exec rake test:functional"
- TASK="RAILS_ENV=production bundle exec rake assets:precompile"
- TASK="bundle exec rubocop"
- TASK="docker build -t mapknitter ."

script:
- $TASK
jobs:
include:
- name: "Unit Tests"
script: bundle exec rake test:unit
- name: "Integration Tests"
script: bundle exec rake test:integration
- name: "Functional Tests"
script: bundle exec rake test:functional
- name: "Rubocop Linter"
script: bundle exec rubocop
- name: "Docker Builds"
script: docker build -t mapknitter .
- name: "Asset Precompilation"
env:
- RAILS_ENV=production
script: bundle exec rake assets:precompile

branches:
only:
Expand Down

0 comments on commit f5532a8

Please sign in to comment.