Skip to content

Add code coverage #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 67 commits into from
May 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
aaf6cc9
change name and branch of yml
XC-Xinze Apr 18, 2025
225363d
fix typo
XC-Xinze Apr 18, 2025
ca03b8c
use mvn spotless:apply to correct errors
XC-Xinze Apr 18, 2025
f44ca7d
add deploy
XC-Xinze Apr 18, 2025
8e75442
small issue
XC-Xinze Apr 18, 2025
ddfb7f0
small issue
XC-Xinze Apr 18, 2025
cc7176b
Change back name and branches.
khatchad Apr 18, 2025
8216a37
Remove irrelevant changes.
khatchad Apr 18, 2025
cb15a46
change repo path in setting.xml
XC-Xinze Apr 18, 2025
f24e458
Remove irrelant changes.
khatchad Apr 18, 2025
ead5233
Only needed for phases not jobs.
khatchad Apr 18, 2025
3694a2b
Merge branch 'xz_deploy' of https://github.com/XC-Xinze/ML into xz_de…
XC-Xinze Apr 18, 2025
906b656
Update continuous-integration.yml
khatchad Apr 18, 2025
a842417
To upstream.
khatchad Apr 18, 2025
d5573dd
restore file:
XC-Xinze Apr 18, 2025
4d4ad19
Merge branch 'master' into xz_deploy
XC-Xinze Apr 18, 2025
eef2986
cant build: for checking errors
XC-Xinze Apr 19, 2025
85c0327
locally configuration but no ./target generate
XC-Xinze Apr 21, 2025
3baedd3
yaml configuration
XC-Xinze Apr 21, 2025
7fea3da
test for GH in xz_deply
XC-Xinze Apr 21, 2025
520aba9
adding -Pjacoco instead of long command
XC-Xinze Apr 21, 2025
ec85088
add covealls token
XC-Xinze Apr 21, 2025
4768fe1
format
XC-Xinze Apr 21, 2025
620f688
change the style of mvn
XC-Xinze Apr 21, 2025
c021206
fix
XC-Xinze Apr 21, 2025
5211e32
temp skipped failure
XC-Xinze Apr 21, 2025
c9e103a
remove coveralls
XC-Xinze Apr 21, 2025
7fd9e0c
change to my own branch for deploying
XC-Xinze Apr 21, 2025
dc87b43
lack authority
XC-Xinze Apr 21, 2025
9b7adde
no skip when met error
XC-Xinze Apr 21, 2025
74a0246
SAME:Bump black from 24.10.0 to 25.1.0
XC-Xinze Apr 21, 2025
f17898f
Update continuous-integration.yml
XC-Xinze Apr 21, 2025
ad38ab1
Update continuous-integration.yml
XC-Xinze Apr 21, 2025
e77070a
Update continuous-integration.yml
XC-Xinze Apr 21, 2025
b3a0d5e
format
XC-Xinze Apr 21, 2025
9d5c681
for re-run actions
XC-Xinze Apr 21, 2025
00f03f6
restore yml
XC-Xinze Apr 21, 2025
189e46e
format
XC-Xinze Apr 21, 2025
9dd1226
Update continuous-integration.yml
khatchad Apr 21, 2025
3fa8783
Upgraqde jacoco version.
khatchad Apr 21, 2025
7df2cb3
Merge branch 'master' into xz_deploy
khatchad Apr 21, 2025
6d64c12
Progress.
khatchad Apr 21, 2025
4110b05
Add some stuff.
khatchad Apr 21, 2025
8ac2b70
Progress.
khatchad Apr 21, 2025
b122a1a
individual coverage test
XC-Xinze Apr 22, 2025
4428ee0
spotless:apply
XC-Xinze Apr 22, 2025
58e2a57
add coverage: fix <argLine>
XC-Xinze Apr 23, 2025
ba4a674
Merge branch 'temp' into xz_deploy
XC-Xinze Apr 23, 2025
44ac7af
remove runtime jacoco test
XC-Xinze Apr 23, 2025
da79b0e
I think we need this module in the main pom.xml.
XC-Xinze Apr 30, 2025
aa7995d
fix argLine
XC-Xinze Apr 30, 2025
f16bb68
Fix format.
XC-Xinze Apr 30, 2025
c6a07e2
Add more dependencies to the report subproject.
khatchad May 1, 2025
760c9a4
Add to Travis.
khatchad May 1, 2025
aba5418
Add coveralls.
khatchad May 1, 2025
0525b90
Remove extra file.
khatchad May 1, 2025
cf26d42
Format.
khatchad May 1, 2025
b095630
Try not using the coveralls-maven-plugin.
khatchad May 1, 2025
0f7c3cd
Only one file.
khatchad May 1, 2025
a16e776
Fix YAML syntax.
khatchad May 1, 2025
a951a98
Try to get it working.
khatchad May 1, 2025
8596f55
Revert "Try to get it working."
khatchad May 1, 2025
dd0983b
Remove the Jython build.
khatchad May 1, 2025
38931c8
Revert "Try not using the coveralls-maven-plugin."
khatchad May 1, 2025
c609a20
Remove the Coveralls GH Action.
khatchad May 1, 2025
1b446dd
Use the token directly.
khatchad May 1, 2025
1087430
Revert "Use the token directly."
khatchad May 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ jobs:
mvn install -B -q -DskipTests
popd
- name: Build with Maven
run: mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties verify -B
run: mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties verify -B -Pjacoco coveralls:report -DrepoToken=$COVERALLS_REPO_TOKEN
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
- name: Deploy with Maven
run: mvn -s .travis.settings.xml -Dgithub.username=$GITHUB_USERNAME -Dgithub.password=$GITHUB_TOKEN deploy -DskipTests -B
env:
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ install:
- mvn install -B -q -DskipTests
- popd
script:
- mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties verify -B
- mvn -Dlogging.config.file=\${maven.multiModuleProjectDirectory}/logging.ci.properties verify -Pjacoco coveralls:report -DrepoToken=$COVERALLS_REPO_TOKEN -B
deploy:
provider: script
script: mvn -s .travis.settings.xml -Dgithub.username=$GITHUB_USERNAME -Dgithub.password=$GITHUB_TOKEN deploy -DskipTests
Expand Down
69 changes: 69 additions & 0 deletions com.ibm.wala.cast.python.report/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="https://maven.apache.org/POM/4.0.0" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ibm.wala</groupId>
<artifactId>ml</artifactId>
<version>0.38.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<artifactId>com.ibm.wala.cast.python.report</artifactId>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.ibm.wala.cast.python</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.ibm.wala.cast.python.jython3</artifactId>
<version>0.38.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.ibm.wala.cast.python.test</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.ibm.wala.cast.python.jython3.test</artifactId>
<version>0.38.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.ibm.wala.cast.python.ml</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.ibm.wala.cast.python.ml.test</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>jacoco</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-version}</version>
<executions>
<execution>
<goals>
<goal>report-aggregate</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
63 changes: 60 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
<packaging>pom</packaging>
<modules>
<module>com.ibm.wala.cast.python</module>
<module>com.ibm.wala.cast.python.jython</module>
<module>com.ibm.wala.cast.python.jython3</module>
<module>com.ibm.wala.cast.python.test</module>
<module>com.ibm.wala.cast.python.jython.test</module>
<module>com.ibm.wala.cast.python.jython3.test</module>
<module>com.ibm.wala.cast.python.ml</module>
<module>com.ibm.wala.cast.python.ml.test</module>
<module>com.ibm.wala.cast.python.report</module>
</modules>
<distributionManagement>
<repository>
Expand All @@ -34,6 +33,8 @@
<maven.surefire.version>3.5.2</maven.surefire.version>
<parallel>both</parallel>
<logging.config.file>${maven.multiModuleProjectDirectory}/logging.properties</logging.config.file>
<jacoco-version>0.8.13</jacoco-version>
<argLine/>
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -144,7 +145,7 @@
<java.util.logging.config.file>${logging.config.file}</java.util.logging.config.file>
</systemPropertyVariables>
<forkMode>once</forkMode>
<argLine>-Dpython.import.site=false</argLine>
<argLine>@{argLine} -Dpython.import.site=false</argLine>
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>
Expand Down Expand Up @@ -257,4 +258,60 @@
</plugin>
</plugins>
</reporting>
<profiles>
<profile>
<id>jacoco</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.hazendaz.maven</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
<version>4.7.0</version>
<configuration>
<jacocoReports>
<jacocoReport>${project.basedir}/com.ibm.wala.cast.python.report/target/site/jacoco-aggregate/jacoco.xml</jacocoReport>
</jacocoReports>
</configuration>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-version}</version>
<configuration>
<propertyName>argLine</propertyName>
</configuration>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
<phase>initialize</phase>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading