Skip to content

Commit f977b70

Browse files
urfeexurmahp
andauthored
Make start_ursim.sh support polyscopex (#294)
This adds support for starting a PolyScopeX-based URsim. The default version will still be the latest PolyScope 5 version. At this moment, this does not install the External Control URCapX as we don't have a download of the built package available. --------- Co-authored-by: Mads Holm Peters <[email protected]>
1 parent 46934cc commit f977b70

File tree

5 files changed

+637
-117
lines changed

5 files changed

+637
-117
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,31 @@ jobs:
9999
if-no-files-found: error
100100
retention-days: 10
101101

102+
test_start_ursim:
103+
runs-on: ubuntu-latest
104+
steps:
105+
- uses: actions/checkout@v4
106+
- uses: ruby/setup-ruby@v1
107+
with:
108+
ruby-version: '3.3' # Not needed with a .ruby-version, .tool-versions or mise.toml
109+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
110+
- name: Setup Bats and bats libs
111+
id: setup-bats
112+
uses: bats-core/[email protected]
113+
- name: Install Ruby dependencies
114+
run: bundle update --bundler && bundle install
115+
- name: Run unittests
116+
shell: bash
117+
env:
118+
BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }}
119+
run: bundle exec bashcov --skip-uncovered bats tests/test_start_ursim.bats
120+
- name: Upload reports to Codecov
121+
uses: codecov/codecov-action@v5
122+
with:
123+
fail_ci_if_error: true
124+
token: ${{ secrets.CODECOV_TOKEN }}
125+
flags: start_ursim
126+
102127
check_links:
103128
runs-on: ubuntu-latest
104129
steps:

.simplecov

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require 'simplecov'
2+
require 'simplecov-cobertura'
3+
4+
SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter

Gemfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Used vor bashcov coverage tool for the shell script
2+
# frozen_string_literal: true
3+
4+
source 'https://rubygems.org'
5+
6+
gem 'bashcov'
7+
gem 'simplecov'
8+
gem 'simplecov-cobertura'

0 commit comments

Comments
 (0)