summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-10-11 19:50:39 -0500
committerRuben Pollan <meskio@sindominio.net>2018-10-25 14:27:28 -0500
commit0f2c53961fc98590aff4ac782f957fd3188571c4 (patch)
tree9034c82a8f08f07e203de6752e259b3c8d985146
parent2fb1e65d17fba1cbf2d53939abb0e26845894602 (diff)
[pkg] build snap in the CI from the current code
- Resolves: #75
-rw-r--r--.gitlab-ci.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e6edacc..f207784 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -60,11 +60,15 @@ snap:
- ln -s "$(pwd)" ${APP_PATH}
- cd ${APP_PATH}
- - git clone https://0xacab.org/leap/riseup_vpn
- - cd riseup_vpn
+ - git clone https://0xacab.org/leap/riseup_vpn /riseup_vpn
+ - cd /riseup_vpn
+ - sed -i 's/https:\/\/0xacab.org\/leap\/bitmask-systray.git$/\/go\/src\/0xacab.org\/leap\/bitmask-systray/' snap/snapcraft.yaml
+ - sed -i 's/.\/bin\/bitmask-systray.git$/.\/bin\/bitmask-systray/' snap/snapcraft.yaml
+ - sed -i 's/git clone.*$//' snap/version.sh
+ - sed -i 's/git -C bitmask-systray/git -C \/go\/src\/0xacab.org\/leap\/bitmask-systray/' snap/version.sh
- snapcraft build
- snapcraft snap
- - mv riseup-vpn*.snap ..
+ - mv riseup-vpn*.snap /go/src/0xacab.org/leap/bitmask-systray/
tags:
- linux
artifacts: