1- ### Wrapper Library for PEAK PCAN® ; Interfaces (Windows® ; )
1+ ### CAN API V3 Wrapper Library for PEAK PCAN® ; Interfaces (Windows® ; )
22
3- _ Copyright
© ; 2005-
2022 Uwe Vogt, UV Software, Berlin (
[email protected] )
_ 3+ _ Copyright
© ; 2005-
2023 Uwe Vogt, UV Software, Berlin (
[email protected] )
_ \ 44_ All rights reserved._
55
66# Deployment
77
8- ## Release Candidate
8+ ## Create the Release Candidate
99
1010### Precondition
1111
1212- ** _ All changes are made exclusively on a feature branch!_ **
1313
1414### Preparation
1515
16- 1 . Update the CAN API V3 sources in ` $(PROJROOT)\Sources\CANAPI ` from SVN repo
16+ 1 . Update the PCANBasic DLL in ` $(PROJROOT)\Sources\PCANBasic ` from PEAK�s website
17+ when required and commit them with commit comment:
18+ - ` Update PEAK's PCANBasic DLL (version ` _ n_ ` . ` _ n_ ` . ` _ n_ ` ) ` \
19+ ` - ` _ list of major changes (optional)_
20+ 2 . Update the CAN API V3 sources in ` $(PROJROOT)\Sources\CANAPI ` from SVN repo
1721 when required and commit them with commit comment:
1822 - ` Update CAN API V3 sources to rev. ` _ nnn_ \
1923 ` - ` _ list of major changes (optional)_
20- 2 . Update the PCANBasic DLL in ` $(PROJROOT)\Sources\PCANBasic ` from PEAK´s website
24+ 3 . Update the CAN API V3 testing sources in ` $(PROJROOT)\Tests ` from SVN repo
2125 when required and commit them with commit comment:
22- - ` Update PEAK´s PCANBasic DLL (version ` _ n _ ` . ` _ nn _ ` ) ` \
26+ - ` Update CAN API V3 testing sources to rev. ` _ nnn _ \
2327 ` - ` _ list of major changes (optional)_
24- 2 . Check and update the version and date information in the following files:
28+ 4 . Check and update the version and date information in the following files:
2529 - ` $(PROJROOT)\Sources\PeakCAN.h `
2630 - ` $(PROJROOT)\Sources\PeakCAN.cpp `
2731 - ` $(PROJROOT)\Sources\Wrapper\can_api.cpp `
@@ -38,7 +42,7 @@ _All rights reserved._
38422 . Open the trial program with Visual Studio and run a code analysis.
3943 - _ ** There should not be any serious finding.** _
4044 - _ If there are findings then fix them or create an issue in the repo._
41- 3 . Run ` build_86 .bat` and ` build_64 .bat` in the project root directory.
45+ 3 . Run ` x86_build .bat` and ` x64_build .bat` in the project root directory.
4246 - _ ** There should be absolute no compiler or linker error!** _
4347 - _ If there are compiler or linker warnings then think twice._
44484 . Try out the trial program with different options.
@@ -47,46 +51,42 @@ _All rights reserved._
47515 . Try out the utilities with different options.
4852 - _ ** There should be no crash, hangup, or any other error.** _
4953 - _ If there is an error then fix it or create an issue in the repo._
50- 6 . Build and try out the examples (repair them when necessary);
54+ 6 . Build and try out the examples (repair them if necessary);
5155 - ` $(PROJROOT)\Examples\C++ `
5256 - ` $(PROJROOT)\Examples\Python `
5357
5458### Pull Request
5559
56601 . Update the ` README.md ` (e.g. development environment, supported devices, etc.).
57612 . Push the feature branch onto the remote repo.
58- 3 . Create a pull request and name it somehow like '** Release Candidate # ** _ n _ '.
62+ 3 . Create a pull request and name it somehow like '** Release Candidate _ n _ for ** ... '.
59634 . Review the changes and merge the feature branch into the default branch.
6064
61- ## Release Tag
65+ ## Create the Release Tag
6266
6367### Preparation
6468
65691 . Pull or clone the default branch on all development systems.
66702 . Double check all version numbers again (see above).
67- 3 . Run the batch file in the project root directory:
71+ 3 . Run the batch files in the project root directory:
6872 - ` C:\Users\haumea>cd C:\Projects\CAN\Drivers\PeakCAN `
69- - ` C:\Projects\CAN\Drivers\PeakCAN>build_86.bat `
70- - ` C:\Projects\CAN\Drivers\PeakCAN>build_64.bat `
71- - ` C:\Projects\CAN\Drivers\PeakCAN>install_86.bat `
72- - ` C:\Projects\CAN\Drivers\PeakCAN>install_64.bat `
73- 4 . Update and build the CAN API V3 Loader Library:
74- - ` C:\Users\haumea>cd C:\Projects\CAN\Library `
75- - ` C:\Projects\CAN\Library>build_86.bat `
76- - ` C:\Projects\CAN\Library>install_86.bat `
77- 5 . Update and build the CAN API V3 GoogleTest:
78- - ` C:\Users\haumea>cd C:\Projects\CAN\Library\Testing\Windows `
79- - ` C:\Projects\CAN\Library\Testing\Windows>build_86.bat `
80- 6 . Run the CAN API V3 GoogleTest with two PCAN-USB device:
81- - ` C:\Projects\CAN\Library\Testing\Windows>Debug\can_testing --can_path=C:\Projects\CAN\API\json --can_dut1=PCAN-USB1 --can_dut2=PCAN-USB2 --gtest_output=xml:TestReport_PCAN-USB.xml --gtest_filter=-SmokeTest.* --sunnyday_traffic=2048 ` [ ...]
73+ - ` C:\Projects\CAN\Drivers\PeakCAN>x86_build.bat `
74+ - ` C:\Projects\CAN\Drivers\PeakCAN>x64_build.bat `
75+ - ` C:\Projects\CAN\Drivers\PeakCAN>x86_install.bat `
76+ - ` C:\Projects\CAN\Drivers\PeakCAN>x64_install.bat `
77+ 4 . Build the CAN API V3 GoogleTest program:
78+ - ` C:\Users\haumea>cd C:\Projects\CAN\Drivers\PeakCAN\Tests `
79+ - ` C:\Projects\CAN\Drivers\PeakCAN\Tests>x86_build.bat `
80+ 5 . Run the CAN API V3 GoogleTest with two PCAN-USB device:
81+ - ` C:\Projects\CAN\Drivers\PeakCAN\Tests>Debug\pcb_testing --can_dut1=PCAN-USB1 --can_dut2=PCAN-USB2 --gtest_output=xml:TestReport_PCAN-USB.xml --run_all=YES --smoketest_frames=100000 ` [ ...]
8282 - _ If there is any error then ** stop** here or create an issue for each error in the repo._
8383 - Copy the test report into the binaries directory ` $(PROJROOT)\Binaries ` .
84846 . Run the CAN API V3 GoogleTest with two PCAN-USB FD device:
85- - ` C:\Projects\CAN\Library\Testing\Windows >Debug\can_testing --can_path=C:\Projects\CAN\API\json -- can_dut1=PCAN-USB3 --can_dut2=PCAN-USB4 --gtest_output=xml:TestReport_PCAN-USB_FD.xml --gtest_filter=-SmokeTest.* --sunnyday_traffic=2048 ` [ ...]
85+ - ` C:\Projects\CAN\Drivers\PeakCAN\Tests >Debug\pcb_testing --can_dut1=PCAN-USB3 --can_dut2=PCAN-USB4 --gtest_output=xml:TestReport_PCAN-USB_FD.xml --run_all=YES --smoketest_frames=100000 ` [ ...]
8686 - _ If there is any error then ** stop** here or create an issue for each error in the repo._
8787 - Copy the test report into the binaries directory ` $(PROJROOT)\Binaries ` .
88- 6 . Run the CAN API V3 GoogleTest with the dual-channel PCAN-USB Pro FDdevice :
89- - ` C:\Projects\CAN\Library\Testing\Windows >Debug\can_testing --can_path=C:\Projects\CAN\API\json -- can_dut1=PCAN-USB5 --can_dut2=PCAN-USB6 --gtest_output=xml:TestReport_PCAN-USB_Pro_FD.xml --gtest_filter=-SmokeTest.* --sunnyday_traffic=2048 ` [ ...]
88+ 6 . Run the CAN API V3 GoogleTest with the dual-channel PCAN-USB Pro FD device :
89+ - ` C:\Projects\CAN\Drivers\PeakCAN\Tests >Debug\pcb_testing --can_dut1=PCAN-USB5 --can_dut2=PCAN-USB6 --gtest_output=xml:TestReport_PCAN-USB_Pro_FD.xml --run_all=YES --smoketest_frames=100000 ` [ ...]
9090 - _ If there is any error then ** stop** here or create an issue for each error in the repo._
9191 - Copy the test report into the binaries directory ` $(PROJROOT)\Binaries ` .
92927 . Pack the artifacts into a .zip-archive, e.g. ` artifacts.zip ` :
@@ -100,13 +100,13 @@ _All rights reserved._
100100
1011011 . Click on ` Draft a new release ` in the [ GitHub] ( https://github.com/uv-software/PeakCAN-Wrapper ) repo.
1021022 . Fill out all required fields:
103- - Tag version: e.g ` v0.2.1 ` (cf. semantic versioning)
103+ - Tag version: e.g ` v0.4.5 ` (cf. semantic versioning)
104104 - Target: ` main ` (default branch)
105- - Release title: e.g. ` Release of June 3, 2021 `
105+ - Release title: e.g. ` Release of August 25, 2023 `
106106 - Change-log: list all major changes, e.g. from commit comments
107107 - Assets: drag and drop the artifacts archive (see above)
1081083 . Click on ` Publish release ` .
109- 4 . That´ s all folks!
109+ 4 . That� s all folks!
110110
111111### Announcement
112112
0 commit comments