If you want to try the CI-Pipeline, first you have to clone the repo and create your own branch. (For this you need the git cmdline tool https://git-scm.com/downloads)
-
Install git cmd tool.
Set the proxy if needed. For example if you are behind a corporate proxy.
git config --global http.proxy [http://proxyUsername:proxyPassword@proxy.server.com:port]
- Create a personal access token.
Click on your user-icon on the top right. ->
Select "Settings". ->
Select "Developer settings" on the Bottom left side. ->
Select "Personal access tokens -> Tokens" on the left side. ->
Follow the instructions on the side to create a token and save it in a save space (e.g. KeePass)
-
Clone the repo.
If you are asked for a username and password, the password is your personal access token.
git clone https://github.com/vectorgrp/ci-siltest-demo.git
- Change into the folder.
cd .\ci-siltest-demo\
- Create your own branch.
git branch [BRANCH_NAME]
git checkout [BRANCH_NAME]
-
Make changes and commit the changes
E.g.: Uncomment line 59 (“//rtb_LightIntensity_LightIntensi = 0;”) in the source code "/ECU/Appl/Simulink/LightCtrl_Model_autosar_rtw/LightCtrl_SWC.c" to cause test fails.
Info: Some tests will set the light intensity value and expect a changed head light result. Because the light intensity is now statically set to value zero, some tests will fail.
git add [PATH_TO_CHANGED_FILES]
git commit
git push --set-upstream origin [BRANCH_NAME]
- After the first push, you can use:
git add [PATH_TO_CHANGED_FILES]
git commit
git push
- Follow the instructions in the next section, to observe the pipeline.
To see the pipeline working and the CANoe4SW_SE Test-Report:
Click "Actions" on the top. ->
Choose the most recent workflow run. ->
Click on the last job "CANoe4SW_SE Tests" listed on the left side bar. ->
View the test results.
For an image based guide, click here