travis 1.6.14.travis.539.6 → 1.6.14.travis.543.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +33 -0
- data/lib/travis/cli.rb +1 -0
- data/lib/travis/client.rb +1 -0
- data/lib/travis/client/methods.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjUyOGZiMmUyMjRjODViMmIwNGFjZWIyNGNkODlmODY5MWNjNzAyMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTVkY2E3NDljOTY5NGMzMWNjNTA5ZTlmY2VjMTdhOGFhNDlkNzc1Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzNlYzliZjNkNjJlMWQ0MGIzZDY0ZGMxYWE3MWY1YjZmYzI0MGE1NDIxZTc1
|
10
|
+
MTIyMjI3ZWQzMTFiZmRjOTAxNjQ0NzkyMjlkNjNhYjQ4ODAzODhmNTA2MzQ4
|
11
|
+
NGY3YTU1ZTE2ZGEzZGI3ODdlZDQyYjMzZGVkNzQwYmIxMzI0NTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2U3NGMzMjY2NzU3M2U0NGIyMDYwYmY3ODY4MDYyMzRkOTlhMWVlM2E2NDI2
|
14
|
+
YjAzZDU1ZjM3YTFiM2YzZjUzZGVmMzE1M2JkY2IyOTE5ZTdiMmIyZjRiMTgx
|
15
|
+
YWMzNDE1N2JiNzI3YjFlMzIyZjg4NzE1YjM0YTE4MTJlNGUxMDY=
|
data/README.md
CHANGED
@@ -20,6 +20,7 @@ The [travis gem](https://rubygems.org/gems/travis) includes both a [command line
|
|
20
20
|
* [`report`](#report) - generates a report useful for filing issues
|
21
21
|
* [`repos`](#repos) - lists repositories the user has certain permissions on
|
22
22
|
* [`sync`](#sync) - triggers a new sync with GitHub
|
23
|
+
* [`lint`](#lint) - display warnings for a .travis.yml
|
23
24
|
* [`token`](#token) - outputs the secret API token
|
24
25
|
* [`whatsup`](#whatsup) - lists most recent builds
|
25
26
|
* [`whoami`](#whoami) - outputs the current user
|
@@ -387,6 +388,32 @@ If you just want to know if your account is being synchronized right now, use `-
|
|
387
388
|
$ travis sync --check
|
388
389
|
rkh is currently syncing
|
389
390
|
|
391
|
+
#### `lint`
|
392
|
+
|
393
|
+
This checks a `.travis.yml` file for any issues it might detect.
|
394
|
+
|
395
|
+
By default, it will read a file named `.travis.yml` in the current directory:
|
396
|
+
|
397
|
+
$ travis lint
|
398
|
+
Warnings for .travis.yml:
|
399
|
+
[x] your repository must be feature flagged for the os setting to be used
|
400
|
+
|
401
|
+
You can also give it a path to a different file:
|
402
|
+
|
403
|
+
$ travis lint example.yml
|
404
|
+
...
|
405
|
+
|
406
|
+
Or pipe the content into it:
|
407
|
+
|
408
|
+
$ echo "foo: bar" | travis lint
|
409
|
+
Warnings for STDIN:
|
410
|
+
[x] unexpected key foo, dropping
|
411
|
+
[x] missing key language, defaulting to ruby
|
412
|
+
|
413
|
+
Like the [`status` command](#status), you can use `-q` to suppress any output, and `-x` to have it set the exit code to 1 if there are any warnings.
|
414
|
+
|
415
|
+
$ travis lint -qx || echo ".travis.yml does not validate"
|
416
|
+
|
390
417
|
#### `token`
|
391
418
|
|
392
419
|
In order to use the Ruby library you will need to obtain an access token first. To do this simply run the `travis login` command. Once logged in you can check your token with `travis token`:
|
@@ -1615,10 +1642,16 @@ Mac OS X 10.9.2 shipped with a slightly broken Ruby version. If you want to inst
|
|
1615
1642
|
If you have the old `travis-cli` gem installed, you should `gem uninstall travis-cli`, just to be sure, as it ships with an executable that is also named `travis`.
|
1616
1643
|
|
1617
1644
|
## Version History
|
1645
|
+
|
1646
|
+
**1.6.14** (Not Yet Released)
|
1647
|
+
* Add `travis lint` command and Ruby API.
|
1648
|
+
|
1618
1649
|
**1.6.13** (June 15, 2014)
|
1619
1650
|
* Added Deis and Hackage setup support.
|
1651
|
+
|
1620
1652
|
**1.6.12** (June 12, 2014)
|
1621
1653
|
* Added artifacts setup support.
|
1654
|
+
|
1622
1655
|
**1.6.11** (May 12, 2014)
|
1623
1656
|
* Added Cloud 66 and Ninefold setup support.
|
1624
1657
|
* Require typhoeus 0.6.8 and later.
|
data/lib/travis/cli.rb
CHANGED
@@ -28,6 +28,7 @@ module Travis
|
|
28
28
|
autoload :Help, 'travis/cli/help'
|
29
29
|
autoload :History, 'travis/cli/history'
|
30
30
|
autoload :Init, 'travis/cli/init'
|
31
|
+
autoload :Lint, 'travis/cli/lint'
|
31
32
|
autoload :Login, 'travis/cli/login'
|
32
33
|
autoload :Logout, 'travis/cli/logout'
|
33
34
|
autoload :Logs, 'travis/cli/logs'
|
data/lib/travis/client.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'travis/client'
|
2
|
+
require 'yaml'
|
2
3
|
|
3
4
|
module Travis
|
4
5
|
module Client
|
@@ -89,6 +90,12 @@ module Travis
|
|
89
90
|
listener.listen
|
90
91
|
end
|
91
92
|
|
93
|
+
def lint(body)
|
94
|
+
body = body.to_yaml unless body.is_a? String
|
95
|
+
result = session.post_raw('/lint', 'content' => body)
|
96
|
+
LintResult.new(result)
|
97
|
+
end
|
98
|
+
|
92
99
|
def hooks
|
93
100
|
session.get('hooks')['hooks']
|
94
101
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.14.travis.
|
4
|
+
version: 1.6.14.travis.543.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -40,7 +40,7 @@ authors:
|
|
40
40
|
autorequire:
|
41
41
|
bindir: bin
|
42
42
|
cert_chain: []
|
43
|
-
date: 2014-06-
|
43
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
44
44
|
dependencies:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: faraday
|