1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

51 commits

Author SHA1 Message Date
Jonah Graham
a360682dba [releng] Fix case where copyright year end == start
Change-Id: I4e96c000a307003946195823fce1f7322b3a4a01
2021-01-15 21:52:03 -05:00
Jonah Graham
ae1fc558bd [releng] Dash jar location moved
Change-Id: I3eb05563a70b7c1895e7d2cacc66617ec5a94b4d
2021-01-11 20:37:52 -05:00
Torbjörn Svensson
e632011f2c Bug 568728: Drop execute permission on files
Add enforecment script that verifies that only specified file types are
allowed to be mared as executable.

Change-Id: I4b40e3a46b03bfc78a9dcd52e8bf29cb079b7f3b
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-18 17:38:22 +01:00
Jonah Graham
a5423f5cd6 [releng] Sort output in compare and replace report
Also-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I0345c363a1f9c23c608e3b3765ca91dffa82077a
2020-11-11 20:57:29 -05:00
Torbjörn Svensson
6431307e70 Bug 568079: Reformat source code using clang-format
This will enforce formatting when building the native code

Change-Id: I6c047f4c0672609df322b7ba716fc786f0e3aab4
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:13:42 -04:00
Torbjörn Svensson
9a440e0b44 [releng] Return exit code from GCC in wrapper
Change-Id: I73ce7fb4cb58b25809359f3bc8e805704737b7d8
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:21:26 +01:00
Torbjörn Svensson
c5a53bb7fe Bug 568079: Format C/C++ code
Added a new C/C++ formatter profile called "Unmanaged profile 'CDT'"
(name stolen from the Java formatter) that is basically K&R with the
tweak of maxium line width set to 120 (same width as for .java files).

Added enforcement of the formatter during build.

libspawner.so/jnilib have differences because the re-formatting changes
line numbers and therefore the __LINE__ macro expands to a different
value.

Change-Id: Id3a0619cb31640c7817dc684c72139f90cab0fc6
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-24 16:54:40 -04:00
Torbjörn Svensson
0429be17e1 [releng] Report more than one failed bundle per invocation
List as many as possible of the failed bundles when doing the baseline
compare.

Change-Id: I0d2817c418cf865f7fc6ea1c7e25d5b3b7b41bd5
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-24 18:39:47 +02:00
Martin Weber
af1b6fa238 Bug 567488: Move cmake code to cmake dir
Change-Id: If3df1f176ed82475d01a047c3a6d8c0882bb1d76
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-10-13 20:42:22 -04:00
Jonah Graham
1413fd90e7 [releng] Automate running of dash licenses (fixup)
Run maven with MVN to allow Jenkinsfile to set default maven options

Change-Id: I42454620e54c57ba3e08a5a33c86b9b48e0cd55d
2020-08-31 16:13:32 -04:00
Jonah Graham
98d1b9b599 [releng] Automate running of dash licenses
Change-Id: Id7e3ed46fc2989438a3fed472bb75c8cb7c83955
2020-08-31 16:09:48 -04:00
Jonah Graham
88b2322c38 Bug 551817: Fix legal docs - and automate their checks
Change-Id: I6f97927f0df64a28e71a2d7ab4c55b609794f751
2020-08-30 23:15:59 -04:00
Jonah Graham
0631233154 [releng] Add missing copyright headers to releng scripts
Change-Id: I68cdf1f8adc1e59f47bb610c8aaeb583ca6cf39b
2020-08-30 20:25:40 -04:00
Jonah Graham
6233337560 [releng] Split up check_code_cleanliness script
As more checks have been added it has gotten a little unweildy.

The new script "do_all_code_cleanups.sh" now does most of the code
formatting checks.

Change-Id: I65fd888c88e1d7e470ed5621cee18ff3bf6680b4
2020-08-30 20:09:50 -04:00
Jonah Graham
0cb1f7482a Bug 566511: [releng] Add missing UTF-8 encoding for all CDT projects
Includes updates to code cleanliness script

Change-Id: Ic495124285e3e002993f34dc12be5ad7337fe13b
2020-08-30 20:02:41 -04:00
Torbjörn Svensson
07b50ba2a2 Bug 521515: Do not rely on commit date for reproducible builds
As mentioned in
https://devblogs.microsoft.com/oldnewthing/20180103-00/?p=97705,
Microsoft has stopped using the _IMAGE_FILE_HEADER.TimeDateStamp as a
time stamp and rather as a hash of the source files to make the build
result predictable.

Change-Id: I4f4a7b9557330e4c478ef7fb25653144c5b2d4ad
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-27 15:42:44 -04:00
Jonah Graham
0c5093d6ff Bug 566334: Turn on API Tooling & Analysis for all bundles
Change-Id: I3cb5645eba52b0cd0e9a71069264d9c589159107
2020-08-24 17:50:56 -04:00
Jonah Graham
fd9382d8a9 Bug 562494: Update BREE to Java 11
Change-Id: I0c91aafc0cb1b179936acbd4c9df2d961899e3fa
2020-08-24 17:50:56 -04:00
Jonah Graham
a588063b23 Bug 521515: Automatically check .so, .dll, .exe files for valid deps
Because we build cross platform, we want to make sure no unexpected
dependencies are introduced on newer or non-universal libraries
in the native code.

Change-Id: Ib8ffeb5f374bcd04514c31dca9d8297fed70343a
2020-08-18 21:43:21 -04:00
Torbjörn Svensson
a025f75771 Bug 521515: Generate JNI header files as part of build
Also generate JNI header for serial component. This component does not
really need it since the implementation is in one file only, but this
would at least throw an error if the java part changes and the native
part is not updated accordingly.

Change-Id: Id598410c322580bdda37c905ed08627390c913ba
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-13 10:13:52 +02:00
Jonah Graham
7120731766 Bug 521515: Generate JNI header files as part of build
Change-Id: Ia92da44f964e1934b2c32d2536f3ec27c03d5d59
2020-08-12 21:30:42 -04:00
Jonah Graham
ba24afc3a4 Bug 521515: Save the log file all the time when building natives
Change-Id: I11b149d94f837dcb9537682a55551add289f8924
2020-08-12 21:30:42 -04:00
Torbjörn Svensson
00a52086c9 Bug 521515: Adopt native build support on jenkins
Change-Id: I6aee7a7c94f93375d3a2ddb0171602a27a6873e7
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-06 20:55:42 -04:00
Torbjörn Svensson
69acfe4819 Bug 521515: Align directory name of native source code
The native directory can contain both libraries and utilities. In
Gerrit https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/165270,
there is a utility, so the directory name "jni", or even "library" does
not work. In order to support both utilities and libraries, the
suggested name of the directory is "native_src" and thus, this commit
syncs that change in o.e.c.native.serial.

Change-Id: Iafa9ce9ae1dca7ef563ab397e8b3eb0b8642372d
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-06 20:54:52 -04:00
Torbjörn Svensson
1073159011 Only validate features committed to git
Change-Id: Icd2427c515bb0cc79e9179ba00216c173264ca17
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-07-12 18:04:20 -04:00
Torbjörn Svensson
6e19332c33 Mark exe and dll files as executable
When git is configured to honor executable bit for files
(core.fileMode=true), the .exe and .dll files in the
repository needs to have execute bit set to be able to run
Eclipse in runtime mode on Windows.
For more details:
https://git-scm.com/docs/git-config#Documentation/git-config.txt-corefileMode
"Git for Windows" does not appear to have this problem,
but at least Cygwin does.

Change-Id: I4c164f6d99219d461c301189f101ccbf63debb50
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-07-12 16:53:47 -04:00
Jonah Graham
cd0f01a5be [releng] Save baseline-compare-and-replace.log all the time
We have had sometimeouts running the baseline-compare-and-replace,
so save the log all the time.

Change-Id: I0e0d98c2f27dbce0f46f15757959e70a13fb53c3
2020-05-27 16:50:54 -04:00
Jonah Graham
0ab57c346a [releng] Remove and add .prefs files according to improved cleanliness script
Change-Id: I9bc8364cda1a1154750127f5db5549073323e84c
2020-04-26 14:52:45 -04:00
Jonah Graham
646273d9a4 [releng] Update code cleanliness to better handle non-JDT/PDE projects
This commit on its own fails cleanliness, but is separated out
to make review easier. The subsequent commit is the result of
cleaning the code with the script

Change-Id: Ibaddc2f338f14fbe60662acc8cb272b584a1a828
2020-04-26 14:44:12 -04:00
Jonah Graham
00cf160745 [releng] Add some more help in error messages when code cleanliness fails
Change-Id: I5cea3eb02e4809e591e3160358b7f6b06feabefa
2020-04-26 10:32:26 -04:00
Jonah Graham
213770265a Bug 559474: Normalize .settings
Change-Id: I4b8ca8341a3f479a74a06621f68534732cff6957
2020-01-31 12:20:41 -05:00
Alexander Fedorov
053f3d7ea0 Bug 559412 - CDT checker: skip org.eclipse.pde.ds.annotations.prefs
Expand the copy mask for .settings/org.eclipse.pde.*, copy only
$COREPROJECT/.settings/org.eclipse.pde.prefs
$COREPROJECT/.settings/org.eclipse.pde.api.tools.prefs

Change-Id: I54d3bb65bb8b2a6d1054bff84fd6185e3fec67ef
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-01-22 11:04:01 -05:00
Jonah Graham
692c4c02a3 Bug 558439: Bring check code cleaniness script back into CDT
Now that this script does not need to be in a common place
for launchbar and tools.templates bring it back into the main
repo.

Change-Id: Ia3033a44bbb809e9163b8cf6b14b49e63f151dd1
2020-01-13 22:06:38 -05:00
Jonah Graham
6042ffbf79 Bug 558827: Add feature info for launchbar and tools.templates
Change-Id: I86e2cd2adb5aacb1332de125e2f3efcde9438fa8
2020-01-13 13:36:03 -05:00
Jonah Graham
d1a15ef473 Bug 558827: Add cleanliness check for features
Change-Id: Id25d340506210206dcd8f0ce93f2e01a041d4e1e
2020-01-09 15:11:35 -05:00
Jonah Graham
f710eabea8 Bug 553231: Move core of script to cdt-infra
Change-Id: I05c1454ade47423d3eb8b20c63ad2bc8d2b800fb
2019-11-19 15:43:33 -05:00
Jonah Graham
794ff1046c [releng] Migrate check_mvn_plugin_versions to Jenkinsfile use
Change-Id: I380166082841b1ba509839f49b523a2c2de23c8c
2019-11-07 17:41:24 -05:00
Jonah Graham
29369a555c Bug 521515: [releng] Build o.e.cdt.native.serial natives using docker
Steps:
1. Edit and commit change
2. docker run --rm -it -v $(git rev-parse --show-toplevel):/work -w /work/$(git rev-parse --show-prefix) quay.io/eclipse-cdt/cdt-infra-eclipse-full:latest  make -C jni rebuild
3. GIT_COMMITTER_DATE=$(git log -1 --pretty=format:%cI -- .) git commit --amend -a --reuse-message=HEAD

Change-Id: I9d9a576fd2eb1c5edd874098d08564ecdfa6ba09
2019-11-04 07:19:27 -05:00
Jonah Graham
35338f28a3 [releng] Cleanup code that has been misformatted and update to SDK 4.13
The check-code-cleanliness CI jobs have not been running recently,
so this commit is to the code up to those minor changes

Change-Id: I9fb4b0213dec558f58c5ca718b3d2685564ef456
2019-10-28 13:07:02 -04:00
Jonah Graham
5b21097125 Bug 540373: Instructions on how to rebase an old commit onto master
Change-Id: I1bbb82b379c1540ba9c88e6bad35d535a11e150e
2018-11-24 17:50:05 +00:00
Jonah Graham
f869a3f247 Bug 540373: Post code-cleanup for DSF examples
The DSF Examples contains some commented out source that is enabled
via a script so this commit cleans that up for new formatting rules.

Change-Id: I82c5e195cc3746415c659b2c0fc72b8118cdc56c
2018-11-24 11:22:15 +00:00
Jonah Graham
37ed2c406d Bug 540373: Update the compiler warnings/ignores
The previous alignment of all the warnings/ignores
led to too many warnings that weren't there before. This
commit relaxes them a bit.

The core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.core.prefs
is still the "master" copy, with
releng/scripts/check_code_cleanliness.sh containing the
exceptions that apply to test plug-ins.

Change-Id: Ibd4e31ade0b42b31e7cbe5a94f06c6fc15183a56
2018-11-24 10:55:06 +00:00
Jonah Graham
1ca3067521 Bug 540373: Use git ls-files instead of find
git ls-files has two benefits:
- Only finds tracked files
   This is necessary because we were having a few cleanups
   being attempted on ignored files.
- Is much faster

Change-Id: I5a53497f8ef9c839676b7ef7e3be35171140f4b9
2018-11-24 10:55:06 +00:00
Jonah Graham
1903ae1acd Bug 540373: Add a code cleanliness check script
Change-Id: Ib665e551469e512193ecdf36bd31667ea38408ea
2018-11-23 14:59:29 +00:00
Jonah Graham
4f9a44aa3d Bug 540373: Standard .settings for JDT/PDE
This commit contains the formatter settings and compiler settings,
using org.eclipse.cdt.core as the master for .settings and
a script to copy them to all the other projects with
apply_jdt_prefs_to_all_projects.sh

Change-Id: Ifd1a45879bed716273cae0ea05b55f629210c36e
2018-11-22 21:47:02 +00:00
Jonah Graham
f70a8b35c1 Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22 20:31:51 +00:00
Jonah Graham
cd61252736 Bug 540371: Script for updating to EPLv2
Script based on work done by Lars Vogel on Eclipse Platform.

See https://git.eclipse.org/r/#/c/127598/

Change-Id: Ic8d04a20c955179645fdeeb11cb3861d7b31fa3f
2018-11-20 21:22:12 +00:00
Jonah Graham
48d2271a58 Bug 540373: Normalize newlines with .gitattributes
There is also a new script to verify completeness of .gitattributes:
releng/scripts/verify_gitattributes.sh

Change-Id: I2ce270852ab54b66b6c474a6ec94203fe5bba78b
2018-11-20 21:20:39 +00:00
Marc-Andre Laperle
793955eb12 Fix script permissions to executable
Change-Id: I13b869f0f3d2a8a7696732e3827bc53e159cb41f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-15 10:05:18 -04:00
Marc-Andre Laperle
d9fd9df16e releng: Update outdated maven plugins. Add script to check for outdated
Change-Id: I6acd451596824584a5c4a29cab72e6eb127d4123
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-01-24 16:38:38 -04:00