-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
64 lines (54 loc) · 2.03 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.default_script: &default_script
when: manual
allow_failure: false
script:
- ruby -v
- bundle exec rake wwtd:local
cache:
untracked: true
paths:
- .bundle/
- vendor/bundle/
before_script:
- 'grep -q "/debian jessie main" /etc/apt/sources.list && echo "deb http://cdn-fastly.deb.debian.org/debian/ jessie main" > /etc/apt/sources.list.d/jessie.list'
- 'grep -q "/debian jessie main" /etc/apt/sources.list && echo "deb http://security.debian.org/ jessie/updates main" > /etc/apt/sources.list.d/jessie-updates.list'
- 'grep -q "/debian jessie main" /etc/apt/sources.list && echo "deb http://archive.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/jessie-backports.list'
- 'grep -q "/debian jessie main" /etc/apt/sources.list && echo "Acquire::Check-Valid-Until no;" > /etc/apt/apt.conf.d/99no-check-valid-until'
- sed -i '/jessie.* main/d' /etc/apt/sources.list
- 'if [ $RUBY_VERSION == "2.3.8" ]; then sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list; fi'
- 'if [ $RUBY_VERSION == "2.3.8" ]; then sed -i "s|security.debian.org|archive.debian.org/|g" /etc/apt/sources.list; fi'
- 'if [ $RUBY_VERSION == "2.3.8" ]; then sed -i "/stretch-updates/d" /etc/apt/sources.list; fi'
- 'apt-get update -y -qq && apt-get install -y -qq locales'
- echo "en_US UTF-8" > /etc/locale.gen
- locale-gen en_US.UTF-8
- export LANG=en_US.UTF-8
- export LANGUAGE=en_US:en
- export LC_ALL=en_US.UTF-8
- rm Gemfile.lock
- gem update --system 3.3.26
- bundle config --local path vendor/bundle
- 'CI=true bundle install --quiet --jobs $(nproc) "${FLAGS[@]}"'
ruby-2.3.8:
image: ruby:2.3.8
<<: *default_script
ruby-2.4.10:
image: ruby:2.4.10
<<: *default_script
ruby-2.5.9:
image: ruby:2.5.9
<<: *default_script
ruby-2.6.10:
image: ruby:2.6.10
<<: *default_script
ruby-2.7.8:
image: ruby:2.7.8
<<: *default_script
ruby-3.0.6:
image: ruby:3.0.6
<<: *default_script
ruby-3.1.4:
image: ruby:3.1.4
<<: *default_script
ruby-3.2.2:
image: ruby:3.2.2
<<: *default_script