httpx/.gitlab-ci.yml
2019-03-16 16:55:03 +00:00

86 lines
1.2 KiB
YAML

image: tmaier/docker-compose
variables:
JEKYLL_ENV: production
services:
- docker:dind
# Cache gems in between builds
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- vendor/ruby
before_script:
- docker info
- docker-compose --version
test_jruby:
stage: test
script:
./spec.sh jruby 9.0.0.0
allow_failure: true
test_ruby21:
stage: test
script:
./spec.sh ruby 2.1
test_ruby22:
only:
- master
stage: test
script:
./spec.sh ruby 2.2
test_ruby23:
only:
- master
stage: test
script:
./spec.sh ruby 2.3
test_ruby24:
only:
- master
stage: test
script:
./spec.sh ruby 2.4
test_ruby25:
only:
- master
stage: test
script:
./spec.sh ruby 2.5
test_ruby26:
stage: test
script:
./spec.sh ruby 2.6
artifacts:
paths:
- www/coverage/
- www/rdoc/
- www/public/
pages:
stage: deploy
dependencies:
- test_ruby26
script:
- mv www/public .
- ls public
- echo "#"
- ls public/rdoc
- echo "#"
- ls public/coverage
#- ls public
#- echo "#"
#- ls www/coverage
#- mv www/coverage public/
#- mv www/rdoc/ public/
artifacts:
paths:
- public
expire_in: 30 days
only:
- master