2018-02-13 16:47:13 +00:00
---
stages :
- build
2019-05-15 14:31:46 +00:00
- push
2021-02-11 20:12:05 +00:00
- debian
2019-09-14 22:15:00 +00:00
- vendor
2018-02-13 16:47:13 +00:00
build_test :
2020-09-17 18:10:08 +00:00
image : registry.0xacab.org/leap/bitmask-vpn:latest
2018-02-13 16:47:13 +00:00
stage : build
script :
2020-08-18 11:02:14 +00:00
- make generate
2018-11-23 02:50:56 +00:00
- make test
2020-10-02 18:42:40 +00:00
# TODO missing xcb package in the docker image. investigate what to install to run minimal tests.
# - make test_ui
2020-09-30 16:34:27 +00:00
- make build
2018-02-13 16:47:13 +00:00
tags :
- linux
2018-10-16 22:29:22 +00:00
artifacts :
2018-02-13 16:47:13 +00:00
paths :
2020-08-18 11:02:14 +00:00
- 'qtbuild/release/riseup-vpn'
2018-02-13 16:47:13 +00:00
expire_in : 1 month
2018-07-10 18:28:41 +00:00
2020-08-18 11:02:14 +00:00
# branded_push:
2020-09-17 18:10:08 +00:00
# image: registry.0xacab.org/leap/bitmask-vpn:latest
2020-08-18 11:02:14 +00:00
# stage: push
# only:
# - master
# script:
# # install the command-line openssh client to manage private keys
# - apt install -y openssh-client
# # activate the ssh-agent
# - eval $(ssh-agent -s)
# # load the private key, which is accessed vi a gitlab CI secret environment variable
# # We're using tr to fix line endings which makes ed25519 keys work
# # without extra base64 encoding.
# - ssh-add <(echo "$RISEUP_VPN_PACKAGE_SSH_KEY")
# - mkdir -p ~/.ssh
# # ensure that ssh will trust a new host, instead of asking
# - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
# # we also need to configure name and email for git user
# - git config user.name "Gitlab CI"
# - git config user.email "gitlabci@0xacab.org"
# # Add the remote repository and push to it - sometimes it already exists, and it causes the pipeline to fail, so we only add if its not already there
# - git remote -v |grep -q riseup-vpn || git remote add riseup-vpn git@0xacab.org:leap/riseup-vpn_package.git
# - git push --force riseup-vpn HEAD:incoming
2019-05-15 14:31:46 +00:00
2020-08-18 11:02:14 +00:00
# trigger_deb:
2020-09-17 18:10:08 +00:00
# image: registry.0xacab.org/leap/buster_amd64:latest
2020-08-18 11:02:14 +00:00
# stage: trigger
# script:
# - echo "Triggering CI pipeline on https://0xacab.org/leap/riseup-vpn_package/pipelines"
# - "curl -X POST -F token=$RISEUP_VPN_DEB_TRIGGER_TOKEN -F ref=master https://0xacab.org/api/v4/projects/1916/trigger/pipeline"
2019-09-14 22:15:00 +00:00
2021-02-11 20:12:05 +00:00
debian :
# TODO use a buster builder image, but upgrade golang version for compatibility
image : registry.0xacab.org/leap/bitmask-vpn:latest
stage : debian
script :
- 'PROVIDER="riseup" make vendor && rm -rf .build && mkdir -p .build && rm -f *.deb && cp -dR * .build/. && cd .build && debuild -us -uc'
artifacts :
paths :
- '*.deb'
2020-08-18 15:46:53 +00:00
vendorize :
2020-09-17 18:10:08 +00:00
image : registry.0xacab.org/leap/bitmask-vpn:latest
2020-08-18 15:46:53 +00:00
stage : vendor
script :
2020-10-26 19:29:04 +00:00
#- TODO build_all_providers script can be rescued when we achieve to bring back xbuild for win/osx.
# For now it only makes sense to build the snap.
2020-08-18 15:46:53 +00:00
#- 'PROVIDERS="riseup calyx" make build_all_providers'
2020-10-27 20:07:00 +00:00
- 'PROVIDER="riseup" make vendor && make package_snap'
2020-08-18 15:46:53 +00:00
artifacts :
name : installers-$CI_COMMIT_REF_NAME
paths :
- 'deploy/*.snap'
2020-08-18 11:02:14 +00:00
# - 'deploy/RiseupVPN-*.exe'
# - 'deploy/RiseupVPN-*.pkg'
# - 'deploy/riseup-vpn_*.deb'
# - 'deploy/CalyxVPN-*.exe'
# - 'deploy/CalyxVPN-*.pkg'
# - 'deploy/calyx-vpn_*.deb'
2020-08-18 15:46:53 +00:00
expire_in : 1 month