Skip to content

Commit

Permalink
Fix ruby test examples after TeamCity docker image changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cburgmer committed Apr 25, 2022
1 parent 5d0e825 commit f526aed
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
9 changes: 9 additions & 0 deletions examples/teamcity/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM jetbrains/teamcity-minimal-agent:2021.2.3

USER root

RUN apt-get update && apt-get -qy install ruby

RUN gem install rake -v 13 && gem install rspec -v 3.11 && gem install rspec_junit_formatter

USER buildagent
2 changes: 1 addition & 1 deletion examples/teamcity/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
- "8111:8111"

agent:
image: jetbrains/teamcity-minimal-agent:2021.2.3
build: .
restart: unless-stopped
environment:
SERVER_URL: "http://server:8111"
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,7 @@ EOF
}
mkdir -p spec
rspecTest > spec/example_spec.rb
if ! type gem &> /dev/null; then
apt-get update
apt-get -qy install ruby
fi
gem install rake -v 11
gem install rspec -v 3.5]]></param>
rspecTest > spec/example_spec.rb]]></param>
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,7 @@ EOF
mkdir -p spec
rspecTest > spec/example_spec.rb
anotherRspecTest > spec/another_spec.rb
if ! type gem &> /dev/null; then
apt-get update
apt-get -qy install ruby
fi
gem install rake
gem install rspec -v 3.1.0
gem install rspec_junit_formatter]]></param>
anotherRspecTest > spec/another_spec.rb]]></param>
<param name="teamcity.step.mode" value="default" />
<param name="use.custom.script" value="true" />
</parameters>
Expand Down Expand Up @@ -85,4 +76,3 @@ end]]></param>
<cleanup />
</settings>
</build-type>

0 comments on commit f526aed

Please sign in to comment.