From 481840ff18b2d66b20a42240829e06829c34f8f7 Mon Sep 17 00:00:00 2001 From: Frank Lam Date: Wed, 3 Jun 2020 04:26:57 +0800 Subject: Generalize CI templates --- lib/bundler/templates/newgem/.circleci/config.yml.tt | 4 ++-- lib/bundler/templates/newgem/.github/workflows/main.yml.tt | 2 +- lib/bundler/templates/newgem/.gitlab-ci.yml.tt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/bundler/templates/newgem/.circleci/config.yml.tt b/lib/bundler/templates/newgem/.circleci/config.yml.tt index 7430bb5583..79fd0dcc0f 100644 --- a/lib/bundler/templates/newgem/.circleci/config.yml.tt +++ b/lib/bundler/templates/newgem/.circleci/config.yml.tt @@ -6,8 +6,8 @@ jobs: steps: - checkout - run: - name: Run tests + name: Run the default task command: | gem install bundler -v <%= Bundler::VERSION %> bundle install - bundle exec rake test + bundle exec rake diff --git a/lib/bundler/templates/newgem/.github/workflows/main.yml.tt b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt index 40112f661a..807c8dd79a 100644 --- a/lib/bundler/templates/newgem/.github/workflows/main.yml.tt +++ b/lib/bundler/templates/newgem/.github/workflows/main.yml.tt @@ -11,7 +11,7 @@ jobs: uses: ruby/setup-ruby@v1 with: ruby-version: <%= RUBY_VERSION %> - - name: Run tests + - name: Run the default task run: | gem install bundler -v <%= Bundler::VERSION %> bundle install diff --git a/lib/bundler/templates/newgem/.gitlab-ci.yml.tt b/lib/bundler/templates/newgem/.gitlab-ci.yml.tt index 5633276b91..0e71ff26a4 100644 --- a/lib/bundler/templates/newgem/.gitlab-ci.yml.tt +++ b/lib/bundler/templates/newgem/.gitlab-ci.yml.tt @@ -4,6 +4,6 @@ before_script: - gem install bundler -v <%= Bundler::VERSION %> - bundle install -test: +example_job: script: - - bundle exec rake test + - bundle exec rake -- cgit v1.2.3