summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml38
1 files changed, 31 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9e896e9c1..123c9d42b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,37 @@
-image: "registry.gitlab.com/gnu-taler/docker-taler-ci:latest"
+image: "registry.gitlab.com/sebasjm/docker-taler-ci:latest"
-before_script:
- - pg_ctlcluster 12 main start
+# before_script:
+# - pg_ctlcluster 12 main start
-test:
+stages:
+ - test
+ - deploy
+
+# test:
+# stage: test
+# script:
+# - ./bootstrap
+# - ./configure
+# - make install
+
+deploy-webext:
+ stage: deploy
+ script:
+ - ./bootstrap
+ - ./configure
+ - make webextension
+ - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN"
+ --upload-file packages/taler-wallet-webextension/extension/taler-wallet-$(jq -r .version packages/taler-wallet-webextension/manifest.json).zip
+ "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/taler-wallet/$(jq -r .version packages/taler-wallet-webextension/manifest.json | cut -d . -f 1,2,3)/taler-wallet-$(jq -r .version packages/taler-wallet-webextension/manifest.json).zip"'
+
+deploy-npm:
+ stage: deploy
script:
+ - npm config set @gnu-taler:registry https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/
+ - npm config set '//gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken' ${CI_JOB_TOKEN}
- ./bootstrap
- ./configure
- - make install integrationtests
+ - make publish
-after_script:
- - pg_ctlcluster 12 main stop
+# after_script:
+# - pg_ctlcluster 12 main stop