aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus.yml
diff options
context:
space:
mode:
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 04d0c9fd239..664b8bfa902 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -226,7 +226,14 @@ qa_gitlab_task:
memory: 5Gb
env:
# Creating a personnal access token from rails console for test purpuse (can't do through gitlab REST API)
- GITLAB_POST_RECONFIGURE_SCRIPT: "gitlab-rails runner \"token = User.find_by_username('root').personal_access_tokens.create(scopes: [:api], name: 'token'); token.set_token('token-here-456'); token.save!\""
+ GITLAB_POST_RECONFIGURE_SCRIPT: "gitlab-rails runner \"
+ token = User.find_by_username('root').personal_access_tokens.create(scopes: [:api], name: 'token');
+ token.set_token('token-here-456');
+ token.save!;
+ token_read = User.find_by_username('root').personal_access_tokens.create(scopes: [:read_api], name: 'token_read');
+ token_read.set_token('token-read-123');
+ token_read.save!;
+ \""
env:
# No need to clone the full history.
# Depth of 1 is not enough because it would fail the build in case of consecutive pushes