Skip to content

Commit

Permalink
Simpler snapcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
dragly committed Nov 3, 2016
1 parent 5d71c09 commit 0ff951d
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 81 deletions.
27 changes: 10 additions & 17 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
FROM ubuntu:16.04
FROM snapcore/snapcraft

RUN apt-get -qq update
RUN apt-get install -qq sudo

RUN sudo apt-get -qq update
RUN sudo apt-get -qq install software-properties-common
RUN sudo apt-get -qq install python-software-properties
#RUN sudo apt-add-repository -y ppa:beineri/opt-qt57-xenial
#RUN sudo apt-get -qq update
#RUN sudo apt-get -qq install qt573d qt57charts-no-lgpl qt57datavis-no-lgpl qt57declarative qt57svg
RUN sudo apt-add-repository -y ppa:beineri/opt-qt57-xenial
RUN sudo apt-get -qq update
RUN sudo apt-get -qq install qt573d qt57charts-no-lgpl qt57datavis-no-lgpl qt57declarative qt57svg

# install packages needed by configure
#RUN sudo apt-get -qq install patch git build-essential curl
RUN sudo apt-get -qq install patch git build-essential curl

# needed by build
#RUN sudo apt-get -qq install mesa-common-dev\
# libgl1-mesa-dev\
# libboost-dev\
# libarmadillo-dev\
# catch

# needed by deploy
RUN sudo apt-get -qq install snapcraft

WORKDIR /app

ADD . /app/
RUN sudo apt-get -qq install mesa-common-dev\
libgl1-mesa-dev\
libboost-dev\
libarmadillo-dev\
catch
51 changes: 0 additions & 51 deletions .snapcraft/snapcraft.yaml

This file was deleted.

15 changes: 3 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,10 @@ matrix:
dist: trusty
sudo: required
services: docker
before_install:
- sudo apt-add-repository -y ppa:beineri/opt-qt57-trusty
- sudo apt-get -qq update
- sudo apt-get -qq install qt573d qt57charts-no-lgpl qt57datavis-no-lgpl qt57declarative qt57svg
- export PATH=/opt/qt57/bin:$PATH
before_deploy:
- cp neuronify .snapcraft/
- cp -r /opt/qt57/lib .snapcraft/
- cp -r /opt/qt57/qml .snapcraft/
- cp -r /opt/qt57/plugins .snapcraft/
- docker run -v $(pwd):/app snapcore/snapcraft bash -c "cd /app/.snapcraft && snapcraft"
- sudo chown -R $USER:$USER .snapcraft
- ls -l .snapcraft
- docker run -v $(pwd):/app snapcore/snapcraft bash -c "cd /app/ && snapcraft"
- sudo chown -R $USER:$USER neuronify*.snap
- ls -l .
deploy:
skip_cleanup: true
provider: releases
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build_script:
- windeployqt.exe -quick -quickwidgets -multimediaquick -multimedia -opengl -quickparticles -quickwidgets -qmldir . release
artifacts:
- path: release
name: windows-release
name: neuronify-windows
type: zip
deploy:
description: 'Automated Windows build'
Expand Down
45 changes: 45 additions & 0 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: neuronify
version: 0.94
summary: Neuronify is a neural network simulator
description: The simulator is built using the integrate-and-fire model.

build-packages:
- cmake
- gettext
- intltool
- ubuntu-touch-sounds
- suru-icon-theme
- qml-module-qttest
- qml-module-qtsysteminfo
- qml-module-qt-labs-settings
- qtdeclarative5-u1db1.0
- qtdeclarative5-qtmultimedia-plugin
- qtdeclarative5-qtpositioning-plugin
- qtdeclarative5-ubuntu-content1
- qt5-default
- qtbase5-dev
- qtdeclarative5-dev
- qtdeclarative5-dev-tools
- qtdeclarative5-folderlistmodel-plugin
- qtdeclarative5-ubuntu-ui-toolkit-plugin
- xvfb

apps:
neuronify:
command: bin/neuronify.sh
plugs: [unity7, opengl]

parts:
neuronify-launcher:
plugin: copy
files: {neuronify.sh: bin/neuronify.sh}
source: .
neuronify:
plugin: qmake
projectfile: neuronify.pro
source: .
stage-packages:
- ubuntu-sdk-libs
- qtubuntu-desktop
- qml-module-qtsysteminfo
- xkb-data

0 comments on commit 0ff951d

Please sign in to comment.