stages: - build - analysis - test variables: &vars LANG: en_US.UTF-8 OSU_TERM: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG GIT_STRATEGY: none osu_term: stage: build image: docker:latest tags: [build] script: docker build -t $OSU_TERM . && docker push $OSU_TERM variables: <<: *vars GIT_STRATEGY: clone .analysis: &analysis stage: analysis image: $OSU_TERM tags: [test] before_script: - cd /app bundle-audit: <<: *analysis script: bundle-audit check --update rubocop: <<: *analysis except: [schedules] script: rubocop rubycritic: <<: *analysis script: rubycritic lib --no-browser -s 80 rspec: stage: test image: $OSU_TERM tags: [test] script: bundle exec rspec