Skip to content

Commit a2b59eb

Browse files
Fix upgrade scripts (#25)
* Fix upgrade scripts * Update gems
1 parent 91addfa commit a2b59eb

File tree

3 files changed

+25
-30
lines changed

3 files changed

+25
-30
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.3.0-alpine
1+
FROM ruby:2.6.3-alpine
22

33
ENV LANG C.UTF-8
44

@@ -19,8 +19,8 @@ RUN { \
1919
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk/jre
2020
ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin
2121

22-
ENV JAVA_VERSION 8u92
23-
ENV JAVA_ALPINE_VERSION 8.92.14-r0
22+
ENV JAVA_VERSION 8u222
23+
ENV JAVA_ALPINE_VERSION 8.222.10-r0
2424

2525
RUN set -x \
2626
&& apk update && apk add --no-cache --update \
@@ -35,7 +35,7 @@ COPY bin/install-checkstyle.sh /usr/src/app/bin/
3535
RUN chown -R app:app /usr/src/app
3636

3737
RUN ./bin/install-checkstyle.sh
38-
RUN apk add --update make g++ git && bundle install
38+
RUN apk add --update make g++ git curl && bundle install
3939

4040
VOLUME /code
4141
WORKDIR /code

Gemfile.lock

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,28 @@ GEM
33
specs:
44
coderay (1.1.2)
55
diff-lcs (1.3)
6-
method_source (0.8.2)
7-
mini_portile2 (2.1.0)
8-
nokogiri (1.6.8)
9-
mini_portile2 (~> 2.1.0)
10-
pkg-config (~> 1.1.7)
11-
pkg-config (1.1.7)
12-
posix-spawn (0.3.11)
13-
pry (0.10.4)
6+
method_source (0.9.2)
7+
mini_portile2 (2.4.0)
8+
nokogiri (1.10.7)
9+
mini_portile2 (~> 2.4.0)
10+
posix-spawn (0.3.13)
11+
pry (0.12.2)
1412
coderay (~> 1.1.0)
15-
method_source (~> 0.8.1)
16-
slop (~> 3.4)
17-
rake (11.2.2)
18-
rspec (3.6.0)
19-
rspec-core (~> 3.6.0)
20-
rspec-expectations (~> 3.6.0)
21-
rspec-mocks (~> 3.6.0)
22-
rspec-core (3.6.0)
23-
rspec-support (~> 3.6.0)
24-
rspec-expectations (3.6.0)
13+
method_source (~> 0.9.0)
14+
rake (13.0.1)
15+
rspec (3.9.0)
16+
rspec-core (~> 3.9.0)
17+
rspec-expectations (~> 3.9.0)
18+
rspec-mocks (~> 3.9.0)
19+
rspec-core (3.9.1)
20+
rspec-support (~> 3.9.1)
21+
rspec-expectations (3.9.0)
2522
diff-lcs (>= 1.2.0, < 2.0)
26-
rspec-support (~> 3.6.0)
27-
rspec-mocks (3.6.0)
23+
rspec-support (~> 3.9.0)
24+
rspec-mocks (3.9.1)
2825
diff-lcs (>= 1.2.0, < 2.0)
29-
rspec-support (~> 3.6.0)
30-
rspec-support (3.6.0)
31-
slop (3.6.0)
26+
rspec-support (~> 3.9.0)
27+
rspec-support (3.9.2)
3228

3329
PLATFORMS
3430
ruby
@@ -41,4 +37,4 @@ DEPENDENCIES
4137
rspec
4238

4339
BUNDLED WITH
44-
1.11.2
40+
1.17.2

bin/scrape-docs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ if !Dir.exists? "data/"
1818
system "git clone --shallow-since=2019-01-01 https://github.com/checkstyle/checkstyle.git data/" or raise "clone failed"
1919
end
2020

21-
system "cd data && git checkout master 1>/dev/null 2>/dev/null && git pull origin master 1>/dev/null 2>/dev/null" or raise "pull failed"
22-
system "cd data && git checkout checkstyle-#{CHECKSTYLE_VERSION} 2>/dev/null" or raise "checkout failed"
21+
system "cd data && git fetch origin && git reset --hard && git checkout checkstyle-#{CHECKSTYLE_VERSION} 2>/dev/null" or raise "checkout failed"
2322

2423
xml_files = Dir.glob("data/src/xdocs/config_*").sort
2524
xml_data = xml_files.map{|f| Nokogiri::XML(File.read(f)) }

0 commit comments

Comments
 (0)