Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
Add Excelsior Jet compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
punkeel committed Jun 13, 2017
1 parent 94bc232 commit dfc5ceb
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,5 @@ dist/
nbdist/
.nb-gradle/

# End of https://www.gitignore.io/api/java,intellij+iml,maven,eclipse,netbeans
# End of https://www.gitignore.io/api/java,intellij+iml,maven,eclipse,netbeans
!*.java
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ cache:
- '$HOME/.m2'
- '$HOME/.sonar/cache'

script: mvn org.jacoco:jacoco-maven-plugin:prepare-agent package com.srcclr:srcclr-maven-plugin:scan
script:
- mvn org.jacoco:jacoco-maven-plugin:prepare-agent package com.srcclr:srcclr-maven-plugin:scan
# - ./scripts/jet-build.sh

deploy:
- provider: script
Expand All @@ -33,7 +35,9 @@ deploy:
skip_cleanup: true
api_key:
secure: "qlyOP0Lg06ThcbsEgXW3qaZzS7eMmsZ4XRUVDsYXbnbZFDem46I7fPboZcAAp0g6AX79Kf/NpESfNShGgzoUZlbFkPp5ez/emi48jENv1H7HwDGS6b/rEcUo7V0ktrY3SfCeQhlwOqicMkCqDG8HT1zjK6odlvjSmSFgUcNG2fWsSmQUJkPZW2jzJaO3Ko37sgX/GIo/HgjL7N9Y7P/+/9PPdBV+rGcjLJAgLZgEQVS3OCd2XHPn6AWa0J7ieFn7JzYQXNT6iOfMVnrRsjsMuTLQKbclFgJb8SZfzJdrOaLY259JumSmGe5Y7SsuN2bRRmFt3H6yF46qptjlPz7ozJCuE4DozVowCjoY+U5ecvx6oMg5WFsFbAipaMWIe6LlZCajqN6RGgPeYwZlfIBbHmj3KGwXOrd3HCslL+D4ZDv/+9QfRriESgaJSSwI/IkT2thHDY+D7FTyRCmKY6S3jcxNGaFz4WRJeFTKMMq1vI0+wI41mRbOg7n5kaNdbCO4vXpBNC/Zhnv0DOD8Zhy/LyGnm9hlfJ10+SF6bxmdKdln9i49AdyaHzVDZCR1/X1lM6mfk1lryzj0jsYVNmYN7JhcsLiUGSY0zSrtSCMQmvajjuPPMFqWXFTj/Kz6aCCIlbsZQAHTntnQr21VMaWqa8JUJ3E6vJYZf1ZtKIy0mpk="
file: cli/target/docbleach.jar
file:
- cli/target/docbleach.jar
- cli/target/jet/docbleach.zip
on:
repo: docbleach/DocBleach
tags: true
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ BUILD SUCCESS confirms that all the tests were run successfuly.
* [:gem: Download latest version][release-page]
* [:mag_right: Wiki][wiki]

# Releases
The releases are available as Windows executables that don't depend on Java, thanks
to the Excelsior Jet technology.

[![](https://i.imgur.com/vBE9rqk.png)](https://www.excelsiorjet.com/)

## License

See [LICENSE][license].
Expand Down
41 changes: 41 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: '{build}'

skip_non_tags: true
skip_branch_with_pr: true

branches:
only:
- master

image: Visual Studio 2017

environment:
JET_URL:
secure: Nu2vAId9CWd0r8aes2mxYZ1PR3IkVSFvPAf9MZ2tUeGDY759Ho79TECbQohmRTiMhoUvwrt8Q3PIq+Il+yCE1w==

install:
- if not exist "jet-1130-pro-en-windows-x86.exe" appveyor DownloadFile "%JET_URL%"
- ps: .\jet-1130-pro-en-windows-x86.exe -batch -no-aftrun -dest C:\jet\
- cmd: SET JET_HOME=C:\jet\

build_script:
- mvn clean install
- mvn jet:testrun jet:build -pl cli --batch-mode -DskipTest

cache:
- C:\Users\appveyor\.m2
- .\jet-1130-pro-en-windows-x86.exe

artifacts:
- path: cli\target\jet\docbleach.exe
name: DocBleach_Setup.exe

- path: cli\target\jet\app\
name: DocBleach_Standalone
type: zip

deploy:
- provider: GitHub
on: # store artifacts for tags only
branch: master
appveyor_repo_tag: true
25 changes: 25 additions & 0 deletions cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,31 @@
</configuration>
</plugin>

<plugin>
<groupId>com.excelsiorjet</groupId>
<artifactId>excelsior-jet-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<mainClass>${mainClass}</mainClass>
<globalOptimizer>true</globalOptimizer>
<diskFootprintReduction>medium</diskFootprintReduction>
<addWindowsVersionInfo>true</addWindowsVersionInfo>

<ignoreProjectDependencies>true</ignoreProjectDependencies>
<dependencies>
<dependency>
<groupId>xyz.docbleach</groupId>
<protect>not-required</protect>
<optimize>auto-detect</optimize>
<pack>not-required</pack>
</dependency>
</dependencies>

<packaging>native-bundle</packaging>
<noDefaultPostInstallActions>true</noDefaultPostInstallActions>
</configuration>
</plugin>

<plugin>
<!-- Don't deploy this to maven repo, only APIs -->
<groupId>org.apache.maven.plugins</groupId>
Expand Down
17 changes: 17 additions & 0 deletions scripts/jet-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh
if [ -z "${TRAVIS_TAG}" ] || [ "${TRAVIS_PULL_REQUEST}" = "true" ]
then
echo "Skipping the Excelsior Jet build."
return
fi
if [ -z "${JET_URL}" ]
then
echo "Unknown JET_URL variable, skipping build."
return
fi

wget -q --no-check-certificate -O jet-1130-pro-en-linux-x86.bin "${JET_URL}"
chmod +x ./jet-1130-pro-en-linux-x86.bin
./jet-1130-pro-en-linux-x86.bin -batch -no-aftrun
export JET_HOME="`pwd`/jet11.3-pro-x86/"
mvn jet:testrun jet:build

0 comments on commit dfc5ceb

Please sign in to comment.