Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Infra
CI Jobs
Official Devices Validator
Commits
e447cc4a
Commit
e447cc4a
authored
Aug 30, 2020
by
José Henrique
Browse files
Fix url
parent
2e37c78c
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e447cc4a
...
...
@@ -17,7 +17,7 @@ build:
git -C official_devices checkout FETCH_HEAD
fi
docker build --no-cache -t official_devices_ci:latest ./
docker run -e RUBYOPT='-W0' -e TELEGRAM_TOKEN=${TELEGRAM_TOKEN} -e GH_PERSONAL_TOKEN=${GH_PERSONAL_TOKEN} -e GIT_PR_NUMBER=${GIT_PR_NUMBER} official_devices_ci:latest
docker run -e RUBYOPT='-W0' -e TELEGRAM_TOKEN=${TELEGRAM_TOKEN} -e GH_PERSONAL_TOKEN=${GH_PERSONAL_TOKEN} -e GIT_PR_NUMBER=${GIT_PR_NUMBER}
-e BUILD_URL=${CI_JOB_URL}
official_devices_ci:latest
only
:
-
triggers
-
web
...
...
runner.sh
View file @
e447cc4a
...
...
@@ -5,12 +5,19 @@
#
### Script to test and format our jsons
# Env vars
# TELEGRAM_TOKEN
# GH_PERSONAL_TOKEN
# GIT_PR_NUMBER
# BUILD_URL
ADMINS
=
"@Hlcpereira @baalajimaestro @Shreejoy
\_
Dash @Rk585 @itsjoeoui @Hasaber8"
GIT_DIR
=
"official_devices"
GIT_CMD
=
"git -C
${
GIT_DIR
}
"
COMMIT_MESSAGE
=
"
$(
${
GIT_CMD
}
log
-1
--pretty
=
%B
)
"
COMMIT_SMALL_HASH
=
"
$(
${
GIT_CMD
}
rev-parse
--short
HEAD
)
"
COMMIT_HASH
=
"
$(
${
GIT_CMD
}
rev-parse
--verify
HEAD
)
"
COMMIT_URL
=
"https://github.com/PixelExperience/official_devices/commit/
$COMMIT_HASH
"
function
sendTG
()
{
message
=
"PixelExperience CI ([URL](
$BUILD_URL
)) ([
$COMMIT_SMALL_HASH
](
$COMMIT_URL
)):
$1
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment