summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-09-06 00:26:09 +0200
committerRuben Pollan <meskio@sindominio.net>2018-09-18 17:01:25 +0200
commit5d0509edcafb1d32d2fc2d0e76c703f7d7468896 (patch)
treed7bd524d2cacf65bf21de2d02ec90c676b0ec477 /.gitlab-ci.yml
parent23fa9c5fd8c72c88979f450797d611ab16f1a30f (diff)
[test] add snap build to the CI
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8703f7e..87ec923 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -61,3 +61,27 @@ win_installer:
paths:
- RiseupVPN-*.exe
expire_in: 1 month
+
+snap:
+ image: 0xacab.org:4567/leap/bitmask-dev:latest
+ stage: build
+ script:
+ - apt-get -y update
+ - apt-get -y install snapcraft
+
+ - mkdir -p /go/src/0xacab.org/leap/
+ - ln -s "$(pwd)" ${APP_PATH}
+ - cd ${APP_PATH}
+
+ - git clone https://0xacab.org/leap/riseup_vpn
+ - cd riseup_vpn
+ - snapcraft build
+ - snapcraft snap
+ - mv riseup-vpn*.snap ..
+ tags:
+ - linux
+ artifacts:
+ name: snap_$CI_COMMIT_REF_NAME
+ paths:
+ - riseup-vpn*.snap
+ expire_in: 1 month