Skip to content
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

Create variants for Java and CDT #10

Open
wants to merge 2 commits into
base: candidate
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ install:
- sudo /snap/bin/lxd waitready
- sudo /snap/bin/lxd init --auto
- mkdir -p "$TRAVIS_BUILD_DIR/snaps-cache"
matrix:
include:
- name: "Eclipse Java"
env: VARIANT=java
- name: "Eclipse CDT"
env: VARIANT=cdt
script:
- export PATH=/snap/bin:$PATH
- sudo snapcraft cleanbuild
- sudo cp *.snap "$(echo "$TRAVIS_REPO_SLUG" | sed -e 's|.*/\(.*\)|\1|')-pr$TRAVIS_PULL_REQUEST.snap"
- cd eclipse-$VARIANT && sudo snapcraft cleanbuild
- sudo cp eclipse-$VARIANT/*.snap "$(echo "$TRAVIS_REPO_SLUG" | sed -e 's|.*/\(.*\)|\1|')-pr$TRAVIS_PULL_REQUEST.snap"
after_success:
- sudo snap install transfer
- timeout 180 sudo /snap/bin/transfer "$(echo "$TRAVIS_REPO_SLUG" | sed -e 's|.*/\(.*\)|\1|')-pr$TRAVIS_PULL_REQUEST.snap"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ distributions.</p>

([Don't have snapd installed?](https://snapcraft.io/docs/core/install))

![eclipse](http://www.eclipse.org/screenshots/images/SDK-RedFlag_Linux.png "eclipse")
![eclipse](https://upload.wikimedia.org/wikipedia/commons/thumb/f/fd/Eclipse_4.6.3.png/1200px-Eclipse_4.6.3.png "eclipse")

<p align="center">Published for <img src="http://anything.codes/slack-emoji-for-techies/emoji/tux.png" align="top" width="24" /> with :gift_heart: by Snapcrafters</p>

Expand All @@ -43,7 +43,7 @@ upstream so Eclipse.org can authoritatively publish future releases.
- [x] Convert the snap to `strict` confinement, or `classic` confinement if it qualifies
- [x] Publish the confined snap in the Snap store beta channel
- [x] Update the install instructions in this `README.md`
- [ ] Post a call for testing on the [Snapcraft Forum](https://forum.snapcraft.io)
- [x] Post a call for testing on the [Snapcraft Forum](https://forum.snapcraft.io)
- [x] Ask a [Snapcrafters admin](https://github.com/orgs/snapcrafters/people?query=%20role%3Aowner) to fork your repo into github.com/snapcrafters, transfer the snap name from you to snapcrafters, and configure the repo for automatic publishing into edge on commit
- [x] Add the provided Snapcraft build badge to this `README.md`
- [x] Publish the snap in the Snap store stable channel
Expand Down
6 changes: 3 additions & 3 deletions eclipse.desktop → eclipse-cdt/eclipse-cdt.desktop
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Eclipse
Name=Eclipse CDT
Icon=/icon.xpm
Exec="/eclipse" %f
Comment=Eclipse IDE
Categories=Development;IDE;
Comment=Eclipse CDT IDE
Categories=Development;IDE;C++
Terminal=false
StartupWMClass=eclipse
34 changes: 34 additions & 0 deletions eclipse-cdt/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: eclipse-cdt
version: '2018-09'
summary: Extensible Tool Platform and Java IDE
description:
Eclipse provides IDEs and platforms for nearly every language and architecture.
We are famous for our Java IDE, C/C++, JavaScript and PHP IDEs built on extensible
platforms for creating desktop, Web and cloud IDEs. These platforms deliver the most
extensive collection of add-on tools available for software developers.

grade: stable
confinement: classic

apps:
eclipse:
command: eclipse-cdt
desktop: eclipse-cdt.desktop

parts:
desktop:
after: [eclipse]
plugin: dump
source: .
prime:
- eclipse-cdt.desktop

eclipse:
plugin: dump
source:
- on amd64: http://ftp.halifax.rwth-aachen.de/eclipse/technology/epp/downloads/release/$SNAPCRAFT_PROJECT_VERSION/R/eclipse-cdt-$SNAPCRAFT_PROJECT_VERSION-linux-gtk-x86_64.tar.gz
- on i386: http://ftp.halifax.rwth-aachen.de/eclipse/technology/epp/downloads/release/$SNAPCRAFT_PROJECT_VERSION/R/eclipse-cdt-$SNAPCRAFT_PROJECT_VERSION-linux-gtk.tar.gz
- on armhf: fail
- on arm64: fail
build-attributes:
- no-patchelf
10 changes: 10 additions & 0 deletions eclipse-java/eclipse-java.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Eclipse Java
Icon=/icon.xpm
Exec="/eclipse" %f
Comment=Eclipse Java IDE
Categories=Development;IDE;Java
Terminal=false
StartupWMClass=eclipse
8 changes: 4 additions & 4 deletions snap/snapcraft.yaml → eclipse-java/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: eclipse
name: eclipse-java
version: '2018-09'
summary: Extensible Tool Platform and Java IDE
description:
Expand All @@ -12,16 +12,16 @@ confinement: classic

apps:
eclipse:
command: eclipse
desktop: eclipse.desktop
command: eclipse-java
desktop: eclipse-java.desktop

parts:
desktop:
after: [eclipse]
plugin: dump
source: .
prime:
- eclipse.desktop
- eclipse-java.desktop

eclipse:
plugin: dump
Expand Down