aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/templates/newgem/gitlab-ci.yml.tt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/templates/newgem/gitlab-ci.yml.tt')
-rw-r--r--lib/bundler/templates/newgem/gitlab-ci.yml.tt8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/gitlab-ci.yml.tt b/lib/bundler/templates/newgem/gitlab-ci.yml.tt
index 42e00392de..d2e1f33736 100644
--- a/lib/bundler/templates/newgem/gitlab-ci.yml.tt
+++ b/lib/bundler/templates/newgem/gitlab-ci.yml.tt
@@ -2,9 +2,17 @@ default:
image: ruby:<%= RUBY_VERSION %>
before_script:
+<%- if config[:ext] == 'rust' -%>
+ - apt-get update && apt-get install -y clang
+ - gem update --system '<%= ::Gem.rubygems_version %>'
+<%- end -%>
- gem install bundler -v <%= Bundler::VERSION %>
- bundle install
example_job:
+<%- if config[:ext] == 'rust' -%>
+ variables:
+ RB_SYS_FORCE_INSTALL_RUST_TOOLCHAIN: 'true'
+<%- end -%>
script:
- bundle exec rake