Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
Gitlab Runner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
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
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Web - Open
Gitlab Runner
Commits
17725edb
Commit
17725edb
authored
Jan 27, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update VERSION during build
parent
33f3d4a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
.travis.yml
.travis.yml
+6
-2
src/main.go
src/main.go
+1
-1
No files found.
.travis.yml
View file @
17725edb
...
...
@@ -3,12 +3,16 @@ language: go
go
:
-
'
1.4'
install
:
-
go get github.com/mitchellh/gox
-
gox -build-toolchain -os="linux" -os="darwin"
-
go get github.com/tools/godep
-
godep restore
before_script
:
-
sed -i "s/^const VERSION .*\$/const VERSION = \"${TRAVIS_TAG:-$TRAVIS_BRANCH} ($(git rev-parse --short HEAD))\"/g" src/consts.go
-
cat src/consts.go | grep VERSION
script
:
-
make test
before_deploy
:
-
go get github.com/mitchellh/gox
-
gox -build-toolchain -os="linux" -os="darwin" -os="windows"
-
make build
deploy
:
provider
:
releases
...
...
src/main.go
View file @
17725edb
...
...
@@ -12,7 +12,7 @@ func Main() {
app
:=
cli
.
NewApp
()
app
.
Name
=
path
.
Base
(
os
.
Args
[
0
])
app
.
Usage
=
"a GitLab-CI Multi Runner"
app
.
Version
=
"0.1.0"
app
.
Version
=
VERSION
app
.
Author
=
"Kamil Trzciński"
app
.
Email
=
"ayufan@ayufan.eu"
...
...
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