mina-ci 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mina/ci/tasks.rb +7 -3
- data/lib/mina/ci/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13a69d39ecdadb08a4d559901e61579629ea2b04
|
4
|
+
data.tar.gz: 397b65ca2030e3a421a8ab9993e6242ecc340541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eef80bbc556d057f9f4679924aa1656b68a5c561c84e2c1e32d0a23c19b8866d279ab59e3860709e7548bd3289e95e323472af166bf2425659c5b45ec6ab92b0
|
7
|
+
data.tar.gz: a37d69b1c169856fc0cbdeef7612d923e392629556a003de15de807c284173068c154da7c66998bbf34b2d6db13e3c2ecc461e397f07dbb889bc5a9b67af0802
|
data/lib/mina/ci/tasks.rb
CHANGED
@@ -17,15 +17,19 @@ require 'json'
|
|
17
17
|
# Name by which CircleCI knows your project
|
18
18
|
#
|
19
19
|
|
20
|
-
set_default :circle_token,
|
21
|
-
set_default :circle_username,
|
22
|
-
set_default :circle_project,
|
20
|
+
set_default :circle_token, nil
|
21
|
+
set_default :circle_username, nil
|
22
|
+
set_default :circle_project, nil
|
23
23
|
|
24
24
|
namespace :ci do
|
25
25
|
|
26
26
|
desc 'Verify CircleCI building status.'
|
27
27
|
task :verify_status => :evironment do
|
28
28
|
queue %[echo "-----> check CircleCI status"]
|
29
|
+
die 0, 'Please set your `:circle_token`.' unless circle_token
|
30
|
+
die 0, 'Please set your `:circle_username`.' unless circle_username
|
31
|
+
die 0, 'Please set your `:circle_project`.' unless circle_project
|
32
|
+
|
29
33
|
unless %w(success fixed).include?(cricle_status)
|
30
34
|
die 1, "CircleCI not passed (#{cricle_status}), please check and fix problem first."
|
31
35
|
end
|
data/lib/mina/ci/version.rb
CHANGED