travis 1.8.9.travis.875.3 → 1.8.9.travis.916.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -27
- data/assets/travis.sh +105 -105
- data/lib/travis/cli/api_command.rb +3 -2
- data/lib/travis/cli/repo_command.rb +1 -1
- data/lib/travis/cli/report.rb +1 -1
- data/lib/travis/cli/settings.rb +3 -1
- data/lib/travis/cli/show.rb +0 -12
- data/lib/travis/client/job.rb +3 -3
- data/lib/travis/client/settings.rb +2 -2
- data/lib/travis/client.rb +1 -2
- data/lib/travis/pro.rb +1 -1
- data/spec/cli/api_command_spec.rb +38 -0
- data/spec/cli/endpoint_spec.rb +5 -0
- data/spec/client/auto_login_spec.rb +25 -0
- data/spec/support/fake_api.rb +2 -9
- data/spec/support/fake_travis_config.yml +14 -0
- data/travis.gemspec +54 -39
- metadata +55 -40
- data/lib/travis/client/annotation.rb +0 -21
- data/spec/client/annotation_spec.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe4213d236f04eb105f6fe62e18abd98325306e657f5630a3be8253ed8b61805
|
4
|
+
data.tar.gz: 4f184c63ca07877db8c9bd5ac1e809a2cd69d602d4039784aab4ee65c00a5782
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1aba709b8bba552c7470527a30c807c281bcfd13cb4cfbe01f87fc7c15ad179ed1e0ed58b1ffa959f03585e29878ec1934b68f563cb4f54243f105dd8298039
|
7
|
+
data.tar.gz: 65d96f09a7f193084dffb116e8bb1c66394bcb6a48af7d6069eee00634df866efd43830e8e3b3d02140bfedbb825596efa16a596560461f3e3dffa4e95d71daa
|
data/README.md
CHANGED
@@ -45,7 +45,7 @@ The [travis gem](https://rubygems.org/gems/travis) includes both a [command line
|
|
45
45
|
* [`show`](#show) - displays a build or job
|
46
46
|
* [`sshkey`](#sshkey) - checks, updates or deletes an SSH key
|
47
47
|
* [`status`](#status) - checks status of the latest build
|
48
|
-
* [
|
48
|
+
* [Travis CI and Travis CI Enterprise](#travis-ci-and-travis-ci-enterprise)
|
49
49
|
* [Environment Variables](#environment-variables)
|
50
50
|
* [Desktop Notifications](#desktop-notifications)
|
51
51
|
* [Plugins](#plugins)
|
@@ -124,6 +124,7 @@ API commands inherit all options from [Non-API Commands](#non-api-commands).
|
|
124
124
|
Additionally, every API command understands the following options:
|
125
125
|
|
126
126
|
-e, --api-endpoint URL Travis API server to talk to
|
127
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
127
128
|
--pro short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
128
129
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
129
130
|
-t, --token [ACCESS_TOKEN] access token to use
|
@@ -192,7 +193,7 @@ $ curl "$(travis endpoint)/docs" > docs.html
|
|
192
193
|
It can also be used to set the default API endpoint used for [General API Commands](#general-api-commands):
|
193
194
|
|
194
195
|
``` console
|
195
|
-
$ travis endpoint --
|
196
|
+
$ travis endpoint --com --set-default
|
196
197
|
API endpoint: https://api.travis-ci.com/ (stored as default)
|
197
198
|
```
|
198
199
|
|
@@ -232,7 +233,7 @@ A third option is for the really lazy: `--auto`. In this mode the client will tr
|
|
232
233
|
This command makes Travis CI forget your access token.
|
233
234
|
|
234
235
|
``` console
|
235
|
-
$ travis logout --
|
236
|
+
$ travis logout --com
|
236
237
|
Successfully logged out!
|
237
238
|
```
|
238
239
|
|
@@ -244,7 +245,7 @@ Successfully logged out!
|
|
244
245
|
-E, --[no-]explode don't rescue exceptions
|
245
246
|
--skip-version-check don't check if travis client is up to date
|
246
247
|
-e, --api-endpoint URL Travis API server to talk to
|
247
|
-
--
|
248
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
248
249
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
249
250
|
-t, --token [ACCESS_TOKEN] access token to use
|
250
251
|
--debug show API requests
|
@@ -286,7 +287,7 @@ Similarly, you can limit it to builds/jobs for pull requests via `--pull` and fo
|
|
286
287
|
The monitor command can also send out [desktop notifications](#desktop-notifications):
|
287
288
|
|
288
289
|
``` console
|
289
|
-
$ travis monitor --
|
290
|
+
$ travis monitor --com -n
|
290
291
|
Monitoring travis-ci.com:
|
291
292
|
...
|
292
293
|
```
|
@@ -319,7 +320,7 @@ Use `--json` if you'd rather prefer the output to be JSON.
|
|
319
320
|
When inspecting a bug or reporting an issue, it can be handy to include a report about the system and configuration used for running a command.
|
320
321
|
|
321
322
|
``` console
|
322
|
-
$ travis report --
|
323
|
+
$ travis report --com
|
323
324
|
System
|
324
325
|
Ruby: Ruby 2.0.0-p195
|
325
326
|
Operating System: Mac OS X 10.8.5
|
@@ -342,7 +343,7 @@ pro: https://api.travis-ci.com/ (access token, current)
|
|
342
343
|
org: https://api.travis-ci.org/ (access token)
|
343
344
|
|
344
345
|
Last Exception
|
345
|
-
An error occurred running `travis whoami --
|
346
|
+
An error occurred running `travis whoami --com`:
|
346
347
|
Travis::Client::Error: access denied
|
347
348
|
from ...
|
348
349
|
|
@@ -364,7 +365,7 @@ This command can also list all known repos and the endpoint to use for them via
|
|
364
365
|
--skip-completion-check don't check if auto-completion is set up
|
365
366
|
-e, --api-endpoint URL Travis API server to talk to
|
366
367
|
-I, --[no-]insecure do not verify SSL certificate of API endpoint
|
367
|
-
--
|
368
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
368
369
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
369
370
|
-t, --token [ACCESS_TOKEN] access token to use
|
370
371
|
--debug show API requests
|
@@ -414,7 +415,7 @@ travis-ci/gh: disabled :(
|
|
414
415
|
-i, --[no-]interactive be interactive and colorful
|
415
416
|
-E, --[no-]explode don't rescue exceptions
|
416
417
|
-e, --api-endpoint URL Travis API server to talk to
|
417
|
-
--
|
418
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
418
419
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
419
420
|
-t, --token [ACCESS_TOKEN] access token to use
|
420
421
|
--debug show API requests
|
@@ -546,7 +547,7 @@ $ git clone "https://github.com/$(travis whoami)/some_project"
|
|
546
547
|
--skip-completion-check don't check if auto-completion is set up
|
547
548
|
-e, --api-endpoint URL Travis API server to talk to
|
548
549
|
-I, --[no-]insecure do not verify SSL certificate of API endpoint
|
549
|
-
--
|
550
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
550
551
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
551
552
|
-t, --token [ACCESS_TOKEN] access token to use
|
552
553
|
--debug show API requests
|
@@ -558,7 +559,7 @@ Repository commands have all the options [General API Commands](#general-api-com
|
|
558
559
|
|
559
560
|
Additionally, you can specify the Repository to talk to by providing `--repo owner/name`. However, if you invoke the command inside a clone of the project, the client will figure out this option on its own. Note that it uses the tracked [git remote](http://www.kernel.org/pub/software/scm/git/docs/git-remote.html) for the current branch (and defaults to 'origin' if no tracking is set) to do so. You can use `--store-repo SLUG` once to override it permanently.
|
560
561
|
|
561
|
-
It will also automatically pick [
|
562
|
+
It will also automatically pick [travis-ci.com](https://travis-ci.com) if it is a private project. You can of course override this decission with `--com`, `--org` or `--api-endpoint URL`
|
562
563
|
|
563
564
|
#### `branches`
|
564
565
|
|
@@ -590,7 +591,7 @@ For more fine grained control and older builds on a specific branch, see [`histo
|
|
590
591
|
--skip-completion-check don't check if auto-completion is set up
|
591
592
|
-e, --api-endpoint URL Travis API server to talk to
|
592
593
|
-I, --[no-]insecure do not verify SSL certificate of API endpoint
|
593
|
-
--
|
594
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
594
595
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
595
596
|
-t, --token [ACCESS_TOKEN] access token to use
|
596
597
|
--debug show API requests
|
@@ -710,7 +711,7 @@ If you don't want the sync to be triggered, use `--skip-sync`.
|
|
710
711
|
-E, --[no-]explode don't rescue exceptions
|
711
712
|
--skip-version-check don't check if travis client is up to date
|
712
713
|
-e, --api-endpoint URL Travis API server to talk to
|
713
|
-
--
|
714
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
714
715
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
715
716
|
-t, --token [ACCESS_TOKEN] access token to use
|
716
717
|
--debug show API requests
|
@@ -779,7 +780,7 @@ There are two ways the client can treat existing values:
|
|
779
780
|
--skip-completion-check don't check if auto-completion is set up
|
780
781
|
-e, --api-endpoint URL Travis API server to talk to
|
781
782
|
-I, --[no-]insecure do not verify SSL certificate of API endpoint
|
782
|
-
--
|
783
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
783
784
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
784
785
|
-t, --token [ACCESS_TOKEN] access token to use
|
785
786
|
--debug show API requests
|
@@ -843,7 +844,7 @@ Commit all changes to your .travis.yml.
|
|
843
844
|
--skip-completion-check don't check if auto-completion is set up
|
844
845
|
-e, --api-endpoint URL Travis API server to talk to
|
845
846
|
-I, --[no-]insecure do not verify SSL certificate of API endpoint
|
846
|
-
--
|
847
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
847
848
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
848
849
|
--staging talks to staging system
|
849
850
|
-t, --token [ACCESS_TOKEN] access token to use
|
@@ -891,7 +892,7 @@ $ travis env unset foo bar
|
|
891
892
|
--skip-completion-check don't check if auto-completion is set up
|
892
893
|
-e, --api-endpoint URL Travis API server to talk to
|
893
894
|
-I, --[no-]insecure do not verify SSL certificate of API endpoint
|
894
|
-
--
|
895
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
895
896
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
896
897
|
-t, --token [ACCESS_TOKEN] access token to use
|
897
898
|
--debug show API requests
|
@@ -963,7 +964,7 @@ $ travis history --limit 3 --pull-request 5
|
|
963
964
|
-E, --[no-]explode don't rescue exceptions
|
964
965
|
--skip-version-check don't check if travis client is up to date
|
965
966
|
-e, --api-endpoint URL Travis API server to talk to
|
966
|
-
--
|
967
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
967
968
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
968
969
|
-t, --token [ACCESS_TOKEN] access token to use
|
969
970
|
--debug show API requests
|
@@ -1211,7 +1212,7 @@ Helps you configure Travis addons.
|
|
1211
1212
|
-E, --[no-]explode don't rescue exceptions
|
1212
1213
|
--skip-version-check don't check if travis client is up to date
|
1213
1214
|
-e, --api-endpoint URL Travis API server to talk to
|
1214
|
-
--
|
1215
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
1215
1216
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
1216
1217
|
-t, --token [ACCESS_TOKEN] access token to use
|
1217
1218
|
--debug show API requests
|
@@ -1317,7 +1318,7 @@ Config: rvm: 1.9.3
|
|
1317
1318
|
-E, --[no-]explode don't rescue exceptions
|
1318
1319
|
-e, --api-endpoint URL Travis API server to talk to
|
1319
1320
|
-I, --[no-]insecure do not verify SSL certificate of API endpoint
|
1320
|
-
--
|
1321
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
1321
1322
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
1322
1323
|
-t, --token [ACCESS_TOKEN] access token to use
|
1323
1324
|
--debug show API requests
|
@@ -1332,7 +1333,7 @@ Config: rvm: 1.9.3
|
|
1332
1333
|
-g, --generate generate SSH key and set up for given GitHub user
|
1333
1334
|
-p, --passphrase PASSPHRASE pass phrase to decrypt with when using --upload
|
1334
1335
|
|
1335
|
-
*This feature is for [
|
1336
|
+
*This feature is for [private and Enterprise](#travis-ci-and-travis-ci-enterprise) only.*
|
1336
1337
|
|
1337
1338
|
With the `sshkey` command you can check if there is a custom SSH key set up. Custom SSH keys are used for cloning the repository.
|
1338
1339
|
|
@@ -1384,7 +1385,7 @@ See the [private dependencies example](examples/cli/private_dependencies.md) for
|
|
1384
1385
|
-i, --[no-]interactive be interactive and colorful
|
1385
1386
|
-E, --[no-]explode don't rescue exceptions
|
1386
1387
|
-e, --api-endpoint URL Travis API server to talk to
|
1387
|
-
--
|
1388
|
+
--com short-cut for --api-endpoint 'https://api.travis-ci.com/'
|
1388
1389
|
--org short-cut for --api-endpoint 'https://api.travis-ci.org/'
|
1389
1390
|
-t, --token [ACCESS_TOKEN] access token to use
|
1390
1391
|
--debug show API requests
|
@@ -1400,14 +1401,14 @@ Outputs a one line status message about the project's last build. With `-q` that
|
|
1400
1401
|
$ travis status -qpx && cap deploy
|
1401
1402
|
```
|
1402
1403
|
|
1403
|
-
###
|
1404
|
+
### Travis CI and Travis CI Enterprise
|
1404
1405
|
|
1405
|
-
By default, [General API Commands](#general-api-commands) will talk to [api.travis-ci.org](https://api.travis-ci.org). You can change this by supplying `--
|
1406
|
+
By default, [General API Commands](#general-api-commands) will talk to [api.travis-ci.org](https://api.travis-ci.org). You can change this by supplying `--com` for [api.travis-ci.com](https://api.travis-ci.com) or `--api-endpoint` with your own endpoint. Note that all [Repository Commands](#repository-commands) will try to figure out the API endpoint to talk to automatically depending on the project's visibility on GitHub.
|
1406
1407
|
|
1407
1408
|
``` console
|
1408
|
-
$ travis login --
|
1409
|
+
$ travis login --com
|
1409
1410
|
...
|
1410
|
-
$ travis monitor --
|
1411
|
+
$ travis monitor --com -m
|
1411
1412
|
...
|
1412
1413
|
```
|
1413
1414
|
|
@@ -1435,7 +1436,7 @@ Note that currently [Repository Commands](#repository-commands) will not be able
|
|
1435
1436
|
You can set the following environment variables to influence the travis behavior:
|
1436
1437
|
|
1437
1438
|
* `$TRAVIS_TOKEN` - access token to use when the `--token` flag is not user
|
1438
|
-
* `$TRAVIS_ENDPOINT` - API endpoint to use when the `--api-endpoint`, `--org` or `--
|
1439
|
+
* `$TRAVIS_ENDPOINT` - API endpoint to use when the `--api-endpoint`, `--org` or `--com` flag is not used
|
1439
1440
|
* `$TRAVIS_CONFIG_PATH` - directory to store configuration in (defaults to ~/.travis)
|
1440
1441
|
|
1441
1442
|
### Desktop Notifications
|
@@ -1983,6 +1984,15 @@ You can also install the development version via RubyGems:
|
|
1983
1984
|
|
1984
1985
|
We automatically publish a new development version after every successful build.
|
1985
1986
|
|
1987
|
+
### Running Locally
|
1988
|
+
|
1989
|
+
If you want to try out your changes locally:
|
1990
|
+
|
1991
|
+
```
|
1992
|
+
bundle install # install the dependencies
|
1993
|
+
bundle exec bin/travis a-command # run your command
|
1994
|
+
```
|
1995
|
+
|
1986
1996
|
### Updating your Ruby
|
1987
1997
|
|
1988
1998
|
If you have an outdated Ruby version, you should use your package system or a Ruby Installer to install a recent Ruby.
|
@@ -2205,7 +2215,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
|
|
2205
2215
|
|
2206
2216
|
**1.6.6** (December 16, 2013)
|
2207
2217
|
|
2208
|
-
* Fix `travis login --
|
2218
|
+
* Fix `travis login --com` for new users.
|
2209
2219
|
|
2210
2220
|
**1.6.5** (December 16, 2013)
|
2211
2221
|
|