Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
S
saberlight
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
madhead
saberlight
Commits
14b638a4
Verified
Commit
14b638a4
authored
Jun 08, 2019
by
madhead
⌨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple CI/CD
parent
54583acd
Pipeline
#65284762
failed with stages
in 6 minutes and 7 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
1 deletion
+40
-1
app/README.md
app/README.md
+1
-0
app/build.gradle.kts
app/build.gradle.kts
+1
-1
ci/README.md
ci/README.md
+1
-0
ci/gitlab/gitlab.yml
ci/gitlab/gitlab.yml
+37
-0
No files found.
app/README.md
0 → 100644
View file @
14b638a4
Saberlight app
app/build.gradle.kts
View file @
14b638a4
...
...
@@ -9,7 +9,7 @@ repositories {
kotlin
{
linuxArm32Hfp
(
"raspberrypi"
)
{
binaries
{
executable
{
executable
(
"saberlight"
)
{
entryPoint
=
"by.dev.madhead.saberlight.main"
}
}
...
...
ci/README.md
0 → 100644
View file @
14b638a4
CI/CD, infrastructure and deployment scripts
ci/gitlab/gitlab.yml
0 → 100644
View file @
14b638a4
stages
:
-
Build
-
Test
-
Deploy
build
:
stage
:
Build
image
:
openjdk:12
dependencies
:
[]
script
:
-
./gradlew clean assemble
artifacts
:
paths
:
-
app/build/bin/raspberrypi/saberlightReleaseExecutable/saberlight.kexe
expire_in
:
'
43200'
gradle-version
:
stage
:
Test
image
:
openjdk:12
dependencies
:
[]
script
:
-
gradle_version=$(./gradlew --version | sed -rn 's/^Gradle (.+)$/\1/p')
-
latest_gradle_version=$(curl https://services.gradle.org/versions/current | python2 -c 'import json,sys;print json.load(sys.stdin)["version"]')
-
echo $gradle_version
-
echo $latest_gradle_version
-
'
[[
$gradle_version
==
$latest_gradle_version
]]'
allow_failure
:
true
deploy
:
tags
:
-
raspberrypi-1
stage
:
Deploy
dependencies
:
-
build
script
:
-
sudo mkdir /opt/saberlight
-
cp app/build/bin/raspberrypi/saberlightReleaseExecutable/saberlight.kexe /opt/saberlight/saberlight
Write
Preview
Markdown
is supported
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