image: ruby:2.3.1
before_script:
- ruby -v
- which ruby
- gem install bundler --no-ri --no-rdoc
- bundle install --jobs $(nproc) "${FLAGS[@]}"
test:
script:
- bundle exec rake test
pages:
only:
- master
- gitlab-pages-yard-coverage
script:
- gem install yard
- bundle exec yard
- bundle exec rake test
- mkdir public
- mv /builds/izwick-schachter/atd/coverage public/coverage
- mv /builds/izwick-schachter/atd/doc public/YARD
- mkdir public/YARD/coverage
- touch public/YARD/coverage/index.html
- yard stats --list-undoc >> public/YARD/coverage/index.html
- ruby -ne 'puts "#{$_}
#{"
" if $_.delete("\n")[-1, 1] == ":"}"' -i public/YARD/coverage/index.html
- ls -R -a --ignore .git
artifacts:
paths:
- public