.gitlab-ci.yml 1.21 KB
Newer Older
1

2 3
ruby_latest:
  image: ruby
4 5
  script:
    - ruby -v
6
    - for f in `find * -name \*.rb`; do printf "$f\t"; ruby -c $f; done
7 8
    - apt-get update
    - apt-get install -y bundler
9 10
    - bundle config set path 'vendor'
    - bundle install
11
    - bundle exec rubocop lib spec
12
    - bundle exec rspec
13 14 15 16 17 18 19 20 21 22 23 24 25 26

debian_buster:
  image: debian:buster
  variables:
    DEBIAN_FRONTEND: noninteractive
    LANG: C.UTF-8
  script:
    - echo 'quiet "1";' \
        'APT::Install-Recommends "0";'
        'APT::Install-Suggests "0";'
        'APT::Acquire::Retries "20";'
        'APT::Get::Assume-Yes "true";'
        'Dpkg::Use-Pty "0";'
        > /etc/apt/apt.conf.d/99gitlab
27 28
    - echo "deb http://deb.debian.org/debian/ testing main" >> /etc/apt/sources.list
    - printf "Package\x3a *\nPin\x3a release a=testing\nPin-Priority\x3a 100\n\nPackage\x3a ruby-jekyll-include-cache ruby-jekyll-paginate-v2\nPin\x3a release a=testing\nPin-Priority\x3a 500\n" > /etc/apt/preferences.d/debian-testing.pref
29 30 31 32 33 34 35 36 37 38 39 40
    - apt-get update
    - apt-get dist-upgrade
    - apt-get install
        rubocop
        ruby-jekyll-include-cache
        ruby-jekyll-paginate-v2
        ruby-json
        ruby-loofah
        ruby-rspec
        ruby-zip
    - rubocop lib spec
    - rspec