inch_ci-worker 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/inch_ci/worker/build/task.rb +2 -1
- data/lib/inch_ci/worker/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9072f4ffcc028666e7f301a24b48384e2f96c7db
|
4
|
+
data.tar.gz: 18d8f88625cc25753074b22491ab32f7f40e3fa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d5bc8ad0364f95f7a6373432ca32cb31b7d814c560036f86e8ce9c1a8aacc9d8ffa0526beddd93dc9dfb4d7853a3278fbd97086826f6d72fe00dae7dd52ed3
|
7
|
+
data.tar.gz: 1386a3c4a204cf47427e8a1356820d8d5498a7be11df5b49393fe8f46b2ee68f792fc943761f4da03a116f0a22822f435ca8cb483b213e632b9baf168c6221ce
|
@@ -36,7 +36,8 @@ module InchCI
|
|
36
36
|
def build(url, branch_name, revision, latest_revision, language)
|
37
37
|
@url = url
|
38
38
|
if retrieve_repo
|
39
|
-
|
39
|
+
checkout_cmd = branch_name == "master" ? "master" : "--track origin/#{branch_name}"
|
40
|
+
if repo.change_branch(checkout_cmd, true)
|
40
41
|
if repo.checkout_revision(revision)
|
41
42
|
if @codebase = parse_codebase(language, repo.path)
|
42
43
|
result = ResultSuccess.new(repo, branch_name, latest_revision, @codebase.objects)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inch_ci-worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- René Föhring
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
152
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.4.
|
153
|
+
rubygems_version: 2.4.7
|
154
154
|
signing_key:
|
155
155
|
specification_version: 4
|
156
156
|
summary: Worker for the Inch CI project
|