travis 1.9.1.travis.1223.9 → 1.9.2.travis.1279.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/assets/travis.sh +3 -6
- data/lib/travis/cli/command.rb +14 -14
- data/lib/travis/cli/init.rb +3 -3
- data/lib/travis/cli/login.rb +7 -1
- data/lib/travis/client/error.rb +10 -0
- data/lib/travis/tools/assets.rb +6 -3
- data/lib/travis/tools/completion.rb +1 -1
- data/lib/travis/tools/system.rb +1 -1
- data/lib/travis/version.rb +1 -1
- data/travis.gemspec +3 -9
- metadata +5 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f67be302cc35a6510bdedb68fe8cc20505a0c9232fa69c2e56c54206a74311ce
|
4
|
+
data.tar.gz: 852638d67ca71bd785d852d1537bfa1a0a587356ee8dc4d3aacb7d3749c8c163
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c018fad0449154af770638828bee35c7e2ca81c1c3cedf1fd484a8d2d8071408767741d2ed82a258b429835dc8ff7e08713388a19ec4cf6314bb5d35e030c065
|
7
|
+
data.tar.gz: e8eed30aa2d42b9def0753be44be328529e4fcfcb28ba53dcb936e011917d995d4d2b833ce37f8a14d828294bf74802877f60436d114807894db35cc6dc53fbb
|
data/README.md
CHANGED
@@ -1994,12 +1994,12 @@ MyTravis::Repository.find('rails/rails')
|
|
1994
1994
|
|
1995
1995
|
## Installation
|
1996
1996
|
|
1997
|
-
Make sure you have at least [Ruby](http://www.ruby-lang.org/en/downloads/)
|
1997
|
+
Make sure you have at least [Ruby](http://www.ruby-lang.org/en/downloads/) 2.3.0 (2.6.0 recommended) installed.
|
1998
1998
|
|
1999
1999
|
You can check your Ruby version by running `ruby -v`:
|
2000
2000
|
|
2001
2001
|
$ ruby -v
|
2002
|
-
ruby 2.
|
2002
|
+
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
|
2003
2003
|
|
2004
2004
|
Then run:
|
2005
2005
|
|
@@ -2018,7 +2018,7 @@ If you do not have write access to the system gem directory, you'll need to perf
|
|
2018
2018
|
Now make sure everything is working:
|
2019
2019
|
|
2020
2020
|
$ travis version
|
2021
|
-
1.9.
|
2021
|
+
1.9.1
|
2022
2022
|
|
2023
2023
|
See also [Note on Ubuntu](#ubuntu) below.
|
2024
2024
|
|
@@ -2126,7 +2126,7 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
|
|
2126
2126
|
|
2127
2127
|
## Version History
|
2128
2128
|
|
2129
|
-
### 1.9.1
|
2129
|
+
### 1.9.1 (May 19, 2020)
|
2130
2130
|
|
2131
2131
|
* Fix `--no-interactive` flag in `encrypt` and `encryt-file` commands https://github.com/travis-ci/travis.rb/pull/738
|
2132
2132
|
* Display commit SHA in `show` https://github.com/travis-ci/travis.rb/pull/739
|
data/assets/travis.sh
CHANGED
@@ -20,7 +20,7 @@ _travis_complete() {
|
|
20
20
|
if type compdef 1>/dev/null 2>/dev/null; then
|
21
21
|
compdef _travis travis
|
22
22
|
_travis() { _travis_complete $((${#words} - 1)) "${words[2]}"; }
|
23
|
-
_travis_commands() { list=(accounts:"displays accounts and their subscription status" branches:"displays the most recent build for each branch" cache:"lists or deletes repository caches" cancel:"cancels a job or build" console:"interactive shell; requires `pry`" disable:"disables a project" enable:"enables a project" encrypt:"encrypts values for the .travis.yml" encrypt-file:"encrypts a file and adds decryption steps to .travis.yml" endpoint:"displays or changes the API endpoint" env:"show or modify build environment variables" help:"helps you out when in dire need of information" history:"displays a project's build history" init:"generates a .travis.yml and enables the project" lint:"display warnings for a .travis.yml" login:"authenticates against the API and stores the token" logout:"deletes the stored API token" logs:"streams test logs"
|
23
|
+
_travis_commands() { list=(accounts:"displays accounts and their subscription status" branches:"displays the most recent build for each branch" cache:"lists or deletes repository caches" cancel:"cancels a job or build" console:"interactive shell; requires `pry`" disable:"disables a project" enable:"enables a project" encrypt:"encrypts values for the .travis.yml" encrypt-file:"encrypts a file and adds decryption steps to .travis.yml" endpoint:"displays or changes the API endpoint" env:"show or modify build environment variables" help:"helps you out when in dire need of information" history:"displays a project's build history" init:"generates a .travis.yml and enables the project" lint:"display warnings for a .travis.yml" login:"authenticates against the API and stores the token" logout:"deletes the stored API token" logs:"streams test logs" open:"opens a build or job in the browser" pubkey:"prints out a repository's public key" raw:"makes an (authenticated) API call and prints out the result" report:"generates a report useful for filing issues" repos:"lists repositories the user has certain permissions on" requests:"lists recent requests" restart:"restarts a build or job" settings:"access repository settings" setup:"sets up an addon or deploy target" show:"displays a build or job" sshkey:"checks, updates or deletes an SSH key" status:"checks status of the latest build" sync:"triggers a new sync with GitHub" token:"outputs the secret API token" version:"outputs the client version" whatsup:"lists most recent builds" whoami:"outputs the current user") _describe -t common-commands 'common commands' list; }
|
24
24
|
_travis_setup() { list=(anynines:"automatic deployment to anynines" appfog:"automatic deployment to Appfog" artifacts:"automatic artifact shipping to S3" biicode:"automatic publish to biicode" cloudcontrol:"automatic deployment to cloudControl" cloudfiles:"automatic pushing to Rackspace Cloud Files" cloudfoundry:"automatic deployment to Cloud Foundry" cloud66:"Automatic deployment to Cloud 66" codedeploy:"triggering a new deployment on Amazon CodeDeploy" deis:"automatic deployment to a deis app" divshot:"deployment to Divshot.io" elasticbeanstalk:"deployment to AWS Elastic Beanstalk" engineyard:"automatic deployment to Engine Yard" gcs:"automatic pushing to Google Cloud Storage" hackage:"automatic deployment of hackage packages" heroku:"automatic deployment to Heroku" modulus:"deployment to Modulus" npm:"automatic release to npm" ninefold:"Automatic deployment to Ninefold" nodejitsu:"automatic deployment to Nodejitsu" openshift:"automatic deployment to OpenShfit" opsworks:"deployment to OpsWorks" pypi:"automatic deployment to PyPI" releases:"Upload Assets to GitHub Releases" rubygems:"automatic release to RubyGems" s3:"automatic pushing to S3" sauce_connect:"Sauce Connet addon for Sauce Labs integration") _describe -t common-commands 'common commands' list; }
|
25
25
|
_travis_settings() { list=(builds_only_with_travis_yml:"Only run builds with a .travis.yml" build_pushes:"Build pushes" build_pull_requests:"Build pull requests" maximum_number_of_builds:"Maximum number of concurrent builds" auto_cancel_pushes:"Cancel older push builds that are not yet running" auto_cancel_pull_requests:"Cancel older pull request builds that are not yet running") _describe -t common-commands 'common commands' list; }
|
26
26
|
_travis_init() { list=(bash:'initialize bash project' c:'initialize c project' clojure:'initialize clojure project' cpp:'initialize cpp project' elixir:'initialize elixir project' erlang:'initialize erlang project' go:'initialize go project' groovy:'initialize groovy project' haskell:'initialize haskell project' java:'initialize java project' node_js:'initialize node_js project' objective-c:'initialize objective-c project' perl:'initialize perl project' php:'initialize php project' python:'initialize python project' ruby:'initialize ruby project' scala:'initialize scala project') _describe -t common-commands 'common commands' list; }
|
@@ -44,7 +44,6 @@ if type compdef 1>/dev/null 2>/dev/null; then
|
|
44
44
|
login) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "--skip-completion-check[don't check if auto-completion is set up]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "-I[do not verify SSL certificate of API endpoint]" "--insecure[do not verify SSL certificate of API endpoint]" "--no-insecure[do not verify SSL certificate of API endpoint]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--com[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--debug-http[show HTTP(S) exchange]" "-X[use enterprise setup (optionally takes name for multiple setups)]" "--enterprise[use enterprise setup (optionally takes name for multiple setups)]" "--adapter[Faraday adapter to use for HTTP requests]" "-g[identify by GitHub token]" "--github-token[identify by GitHub token]" "-T[try to figure out who you are automatically (might send another apps token to Travis, token will not be stored)]" "--auto-token[try to figure out who you are automatically (might send another apps token to Travis, token will not be stored)]" "-p[try to load password from OSX keychain (will not be stored)]" "--auto-password[try to load password from OSX keychain (will not be stored)]" "-a[shorthand for --auto-token --auto-password]" "--auto[shorthand for --auto-token --auto-password]" "-u[user to log in as]" "--user[user to log in as]" "-M[do not use interactive login]" "--no-manual[do not use interactive login]" "--list-github-token[instead of actually logging in, list found GitHub tokens]" "--skip-token-check[don't verify the token with github]" '*:file:_files' && return 0;;
|
45
45
|
logout) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "--skip-completion-check[don't check if auto-completion is set up]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "-I[do not verify SSL certificate of API endpoint]" "--insecure[do not verify SSL certificate of API endpoint]" "--no-insecure[do not verify SSL certificate of API endpoint]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--com[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--debug-http[show HTTP(S) exchange]" "-X[use enterprise setup (optionally takes name for multiple setups)]" "--enterprise[use enterprise setup (optionally takes name for multiple setups)]" "--adapter[Faraday adapter to use for HTTP requests]" '*:file:_files' && return 0;;
|
46
46
|
logs) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "--skip-completion-check[don't check if auto-completion is set up]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "-I[do not verify SSL certificate of API endpoint]" "--insecure[do not verify SSL certificate of API endpoint]" "--no-insecure[do not verify SSL certificate of API endpoint]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--com[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--debug-http[show HTTP(S) exchange]" "-X[use enterprise setup (optionally takes name for multiple setups)]" "--enterprise[use enterprise setup (optionally takes name for multiple setups)]" "--adapter[Faraday adapter to use for HTTP requests]" "-r[repository to use (will try to detect from current git clone)]" "--repo[repository to use (will try to detect from current git clone)]" "-R[like --repo, but remembers value for current directory]" "--store-repo[like --repo, but remembers value for current directory]" "-d[remove logs]" "--delete[remove logs]" "-f[do not ask user to confirm deleting the logs]" "--force[do not ask user to confirm deleting the logs]" "--stream[only print current logs, do not stream]" "--no-stream[only print current logs, do not stream]" '*:file:_files' && return 0;;
|
47
|
-
monitor) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "--skip-completion-check[don't check if auto-completion is set up]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "-I[do not verify SSL certificate of API endpoint]" "--insecure[do not verify SSL certificate of API endpoint]" "--no-insecure[do not verify SSL certificate of API endpoint]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--com[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--debug-http[show HTTP(S) exchange]" "-X[use enterprise setup (optionally takes name for multiple setups)]" "--enterprise[use enterprise setup (optionally takes name for multiple setups)]" "--adapter[Faraday adapter to use for HTTP requests]" "-m[Only monitor my own repositories]" "--my-repos[Only monitor my own repositories]" "-r[monitor given repository (can be used more than once)]" "--repo[monitor given repository (can be used more than once)]" "-n[send out desktop notifications (optional type: osx, growl, libnotify)]" "--notify[send out desktop notifications (optional type: osx, growl, libnotify)]" "--no-notify[send out desktop notifications (optional type: osx, growl, libnotify)]" "-b[only monitor builds, not jobs]" "--builds[only monitor builds, not jobs]" "-p[monitor push events]" "--push[monitor push events]" "-P[monitor pull request events]" "--pull[monitor pull request events]" '*:file:_files' && return 0;;
|
48
47
|
open) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "--skip-completion-check[don't check if auto-completion is set up]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "-I[do not verify SSL certificate of API endpoint]" "--insecure[do not verify SSL certificate of API endpoint]" "--no-insecure[do not verify SSL certificate of API endpoint]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--com[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--debug-http[show HTTP(S) exchange]" "-X[use enterprise setup (optionally takes name for multiple setups)]" "--enterprise[use enterprise setup (optionally takes name for multiple setups)]" "--adapter[Faraday adapter to use for HTTP requests]" "-r[repository to use (will try to detect from current git clone)]" "--repo[repository to use (will try to detect from current git clone)]" "-R[like --repo, but remembers value for current directory]" "--store-repo[like --repo, but remembers value for current directory]" "-g[Open the corresponding project, compare view or pull request on GitHub]" "--github[Open the corresponding project, compare view or pull request on GitHub]" "-p[Print out the URL instead of opening it in a browser]" "--print[Print out the URL instead of opening it in a browser]" '*:file:_files' && return 0;;
|
49
48
|
pubkey) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "--skip-completion-check[don't check if auto-completion is set up]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "-I[do not verify SSL certificate of API endpoint]" "--insecure[do not verify SSL certificate of API endpoint]" "--no-insecure[do not verify SSL certificate of API endpoint]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--com[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--debug-http[show HTTP(S) exchange]" "-X[use enterprise setup (optionally takes name for multiple setups)]" "--enterprise[use enterprise setup (optionally takes name for multiple setups)]" "--adapter[Faraday adapter to use for HTTP requests]" "-r[repository to use (will try to detect from current git clone)]" "--repo[repository to use (will try to detect from current git clone)]" "-R[like --repo, but remembers value for current directory]" "--store-repo[like --repo, but remembers value for current directory]" "-p[encode in format used by pem]" "--pem[encode in format used by pem]" "-f[display fingerprint]" "--fingerprint[display fingerprint]" '*:file:_files' && return 0;;
|
50
49
|
raw) _arguments -s -S "-h[Display help]" "--help[Display help]" "-i[be interactive and colorful]" "--interactive[be interactive and colorful]" "--no-interactive[be interactive and colorful]" "-E[don't rescue exceptions]" "--explode[don't rescue exceptions]" "--no-explode[don't rescue exceptions]" "--skip-version-check[don't check if travis client is up to date]" "--skip-completion-check[don't check if auto-completion is set up]" "-e[Travis API server to talk to]" "--api-endpoint[Travis API server to talk to]" "-I[do not verify SSL certificate of API endpoint]" "--insecure[do not verify SSL certificate of API endpoint]" "--no-insecure[do not verify SSL certificate of API endpoint]" "--pro[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--com[short-cut for --api-endpoint 'https://api.travis-ci.com/']" "--org[short-cut for --api-endpoint 'https://api.travis-ci.org/']" "--staging[talks to staging system]" "-t[access token to use]" "--token[access token to use]" "--debug[show API requests]" "--debug-http[show HTTP(S) exchange]" "-X[use enterprise setup (optionally takes name for multiple setups)]" "--enterprise[use enterprise setup (optionally takes name for multiple setups)]" "--adapter[Faraday adapter to use for HTTP requests]" "--json[display as json]" "--no-json[display as json]" '*:file:_files' && return 0;;
|
@@ -67,7 +66,7 @@ if type compdef 1>/dev/null 2>/dev/null; then
|
|
67
66
|
elif type compctl 1>/dev/null 2>/dev/null; then
|
68
67
|
compctl -K _travis travis
|
69
68
|
_travis() { read -cA words && _travis_complete $((${#words} - 1)) "${words[2]}"; }
|
70
|
-
_travis_commands() { reply=("accounts" "branches" "cache" "cancel" "console" "disable" "enable" "encrypt" "encrypt-file" "endpoint" "env" "help" "history" "init" "lint" "login" "logout" "logs" "
|
69
|
+
_travis_commands() { reply=("accounts" "branches" "cache" "cancel" "console" "disable" "enable" "encrypt" "encrypt-file" "endpoint" "env" "help" "history" "init" "lint" "login" "logout" "logs" "open" "pubkey" "raw" "report" "repos" "requests" "restart" "settings" "setup" "show" "sshkey" "status" "sync" "token" "version" "whatsup" "whoami"); }
|
71
70
|
_travis_setup() { reply=("anynines" "appfog" "artifacts" "biicode" "cloudcontrol" "cloudfiles" "cloudfoundry" "cloud66" "codedeploy" "deis" "divshot" "elasticbeanstalk" "engineyard" "gcs" "hackage" "heroku" "modulus" "npm" "ninefold" "nodejitsu" "openshift" "opsworks" "pypi" "releases" "rubygems" "s3" "sauce_connect"); }
|
72
71
|
_travis_settings() { reply=(builds_only_with_travis_yml build_pushes build_pull_requests maximum_number_of_builds auto_cancel_pushes auto_cancel_pull_requests); }
|
73
72
|
_travis_init() { reply=("bash" "c" "clojure" "cpp" "elixir" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"); }
|
@@ -91,7 +90,6 @@ elif type compctl 1>/dev/null 2>/dev/null; then
|
|
91
90
|
login) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--skip-completion-check" "--api-endpoint" "-e" "--insecure" "--no-insecure" "-I" "--pro" "--com" "--org" "--staging" "--token" "-t" "--debug" "--debug-http" "--enterprise" "-X" "--adapter" "--github-token" "-g" "--auto-token" "-T" "--auto-password" "-p" "--auto" "-a" "--user" "-u" "--no-manual" "-M" "--list-github-token" "--skip-token-check");;
|
92
91
|
logout) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--skip-completion-check" "--api-endpoint" "-e" "--insecure" "--no-insecure" "-I" "--pro" "--com" "--org" "--staging" "--token" "-t" "--debug" "--debug-http" "--enterprise" "-X" "--adapter");;
|
93
92
|
logs) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--skip-completion-check" "--api-endpoint" "-e" "--insecure" "--no-insecure" "-I" "--pro" "--com" "--org" "--staging" "--token" "-t" "--debug" "--debug-http" "--enterprise" "-X" "--adapter" "--repo" "-r" "--store-repo" "-R" "--delete" "-d" "--force" "-f" "--stream" "--no-stream");;
|
94
|
-
monitor) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--skip-completion-check" "--api-endpoint" "-e" "--insecure" "--no-insecure" "-I" "--pro" "--com" "--org" "--staging" "--token" "-t" "--debug" "--debug-http" "--enterprise" "-X" "--adapter" "--my-repos" "-m" "--repo" "-r" "--notify" "--no-notify" "-n" "--builds" "-b" "--push" "-p" "--pull" "-P");;
|
95
93
|
open) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--skip-completion-check" "--api-endpoint" "-e" "--insecure" "--no-insecure" "-I" "--pro" "--com" "--org" "--staging" "--token" "-t" "--debug" "--debug-http" "--enterprise" "-X" "--adapter" "--repo" "-r" "--store-repo" "-R" "--github" "-g" "--print" "-p");;
|
96
94
|
pubkey) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--skip-completion-check" "--api-endpoint" "-e" "--insecure" "--no-insecure" "-I" "--pro" "--com" "--org" "--staging" "--token" "-t" "--debug" "--debug-http" "--enterprise" "-X" "--adapter" "--repo" "-r" "--store-repo" "-R" "--pem" "-p" "--fingerprint" "-f");;
|
97
95
|
raw) reply=("--help" "-h" "--interactive" "--no-interactive" "-i" "--explode" "--no-explode" "-E" "--skip-version-check" "--skip-completion-check" "--api-endpoint" "-e" "--insecure" "--no-insecure" "-I" "--pro" "--com" "--org" "--staging" "--token" "-t" "--debug" "--debug-http" "--enterprise" "-X" "--adapter" "--json" "--no-json");;
|
@@ -114,7 +112,7 @@ elif type compctl 1>/dev/null 2>/dev/null; then
|
|
114
112
|
elif type complete 1>/dev/null 2>/dev/null; then
|
115
113
|
complete -F _travis travis
|
116
114
|
_travis() { _travis_complete "$COMP_CWORD" "${COMP_WORDS[1]}"; }
|
117
|
-
_travis_commands() { COMPREPLY=( $(compgen -W "accounts branches cache cancel console disable enable encrypt encrypt-file endpoint env help history init lint login logout logs
|
115
|
+
_travis_commands() { COMPREPLY=( $(compgen -W "accounts branches cache cancel console disable enable encrypt encrypt-file endpoint env help history init lint login logout logs open pubkey raw report repos requests restart settings setup show sshkey status sync token version whatsup whoami" -- "${COMP_WORDS[COMP_CWORD]}") ); }
|
118
116
|
_travis_setup() { COMPREPLY=( $(compgen -W "anynines appfog artifacts biicode cloudcontrol cloudfiles cloudfoundry cloud66 codedeploy deis divshot elasticbeanstalk engineyard gcs hackage heroku modulus npm ninefold nodejitsu openshift opsworks pypi releases rubygems s3 sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
|
119
117
|
_travis_settings() { COMPREPLY=( $(compgen -W "builds_only_with_travis_yml build_pushes build_pull_requests maximum_number_of_builds auto_cancel_pushes auto_cancel_pull_requests" -- "${COMP_WORDS[COMP_CWORD]}") ); }
|
120
118
|
_travis_init() { COMPREPLY=( $(compgen -W ""bash" "c" "clojure" "cpp" "elixir" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"" -- "${COMP_WORDS[COMP_CWORD]}") ); }
|
@@ -139,7 +137,6 @@ elif type complete 1>/dev/null 2>/dev/null; then
|
|
139
137
|
login) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --skip-completion-check --api-endpoint -e --insecure --no-insecure -I --pro --com --org --staging --token -t --debug --debug-http --enterprise -X --adapter --github-token -g --auto-token -T --auto-password -p --auto -a --user -u --no-manual -M --list-github-token --skip-token-check";;
|
140
138
|
logout) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --skip-completion-check --api-endpoint -e --insecure --no-insecure -I --pro --com --org --staging --token -t --debug --debug-http --enterprise -X --adapter";;
|
141
139
|
logs) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --skip-completion-check --api-endpoint -e --insecure --no-insecure -I --pro --com --org --staging --token -t --debug --debug-http --enterprise -X --adapter --repo -r --store-repo -R --delete -d --force -f --stream --no-stream";;
|
142
|
-
monitor) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --skip-completion-check --api-endpoint -e --insecure --no-insecure -I --pro --com --org --staging --token -t --debug --debug-http --enterprise -X --adapter --my-repos -m --repo -r --notify --no-notify -n --builds -b --push -p --pull -P";;
|
143
140
|
open) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --skip-completion-check --api-endpoint -e --insecure --no-insecure -I --pro --com --org --staging --token -t --debug --debug-http --enterprise -X --adapter --repo -r --store-repo -R --github -g --print -p";;
|
144
141
|
pubkey) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --skip-completion-check --api-endpoint -e --insecure --no-insecure -I --pro --com --org --staging --token -t --debug --debug-http --enterprise -X --adapter --repo -r --store-repo -R --pem -p --fingerprint -f";;
|
145
142
|
raw) options="--help -h --interactive --no-interactive -i --explode --no-explode -E --skip-version-check --skip-completion-check --api-endpoint -e --insecure --no-insecure -I --pro --com --org --staging --token -t --debug --debug-http --enterprise -X --adapter --json --no-json";;
|
data/lib/travis/cli/command.rb
CHANGED
@@ -161,9 +161,9 @@ module Travis
|
|
161
161
|
unless Tools::System.recent_version? Travis::VERSION, last_check['version']
|
162
162
|
warn "Outdated CLI version, run `gem install travis`."
|
163
163
|
end
|
164
|
-
rescue Timeout::Error, Faraday::
|
164
|
+
rescue Timeout::Error, Faraday::ClientError => error
|
165
165
|
debug "#{error.class}: #{error.message}"
|
166
|
-
rescue JSON::
|
166
|
+
rescue JSON::ParserError => error
|
167
167
|
warn "Unable to determine the most recent travis gem version. http://rubygems.org may be down."
|
168
168
|
end
|
169
169
|
|
@@ -279,6 +279,18 @@ module Travis
|
|
279
279
|
@on_signal << block
|
280
280
|
end
|
281
281
|
|
282
|
+
def warn(message)
|
283
|
+
write_to($stderr) do
|
284
|
+
say color(message, :error)
|
285
|
+
yield if block_given?
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
def error(message, &block)
|
290
|
+
warn(message, &block)
|
291
|
+
exit 1
|
292
|
+
end
|
293
|
+
|
282
294
|
private
|
283
295
|
|
284
296
|
def store_error(exception)
|
@@ -326,18 +338,6 @@ module Travis
|
|
326
338
|
say "\n"
|
327
339
|
end
|
328
340
|
|
329
|
-
def warn(message)
|
330
|
-
write_to($stderr) do
|
331
|
-
say color(message, :error)
|
332
|
-
yield if block_given?
|
333
|
-
end
|
334
|
-
end
|
335
|
-
|
336
|
-
def error(message, &block)
|
337
|
-
warn(message, &block)
|
338
|
-
exit 1
|
339
|
-
end
|
340
|
-
|
341
341
|
def command(name)
|
342
342
|
color("#{File.basename($0)} #{name}", :command)
|
343
343
|
end
|
data/lib/travis/cli/init.rb
CHANGED
@@ -34,7 +34,7 @@ module Travis
|
|
34
34
|
attr_writer :travis_config
|
35
35
|
|
36
36
|
def self.languages
|
37
|
-
|
37
|
+
asset_path('init/*.yml').map { |f| File.basename(f, '.yml') }.sort
|
38
38
|
end
|
39
39
|
|
40
40
|
def help
|
@@ -63,7 +63,7 @@ module Travis
|
|
63
63
|
private
|
64
64
|
|
65
65
|
def template_name(language)
|
66
|
-
asset_path
|
66
|
+
asset_path("init/#{language}.yml").first
|
67
67
|
end
|
68
68
|
|
69
69
|
def template(language)
|
@@ -79,4 +79,4 @@ module Travis
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
82
|
-
end
|
82
|
+
end
|
data/lib/travis/cli/login.rb
CHANGED
@@ -31,7 +31,13 @@ module Travis
|
|
31
31
|
github.with_token do |token|
|
32
32
|
endpoint_config['access_token'] = github_auth(token)
|
33
33
|
error("user mismatch: logged in as %p instead of %p" % [user.login, user_login]) if user_login and user.login != user_login
|
34
|
-
|
34
|
+
unless user.correct_scopes?
|
35
|
+
error(
|
36
|
+
"#{user.login} has not granted Travis CI the required permissions. " \
|
37
|
+
"Please try re-syncing your user data at https://#{session.config['host']}/account/preferences " \
|
38
|
+
"and try logging in via #{session.config['host']}"
|
39
|
+
)
|
40
|
+
end
|
35
41
|
success("Successfully logged in as #{user.login}!")
|
36
42
|
end
|
37
43
|
|
data/lib/travis/client/error.rb
CHANGED
@@ -23,6 +23,16 @@ module Travis
|
|
23
23
|
class RepositoryMigrated < Error
|
24
24
|
end
|
25
25
|
|
26
|
+
class AssetNotFound < Error
|
27
|
+
def initialize(file, *args)
|
28
|
+
if md = file.match(%r[init/(?<lang>[^\.]+)\.yml$])
|
29
|
+
super "unknown language #{md[:lang]}", *args
|
30
|
+
else
|
31
|
+
super file, *args
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
26
36
|
class ValidationFailed < Error
|
27
37
|
attr_reader :errors
|
28
38
|
|
data/lib/travis/tools/assets.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'pathname'
|
1
2
|
module Travis
|
2
3
|
module Tools
|
3
4
|
module Assets
|
@@ -5,11 +6,13 @@ module Travis
|
|
5
6
|
extend self
|
6
7
|
|
7
8
|
def asset_path(file)
|
8
|
-
File.expand_path(file, BASE)
|
9
|
+
Pathname.glob(File.expand_path(file, BASE)).tap do |x|
|
10
|
+
raise Travis::Client::AssetNotFound.new(file) if x.empty?
|
11
|
+
end
|
9
12
|
end
|
10
13
|
|
11
14
|
def asset(file)
|
12
|
-
File.read(asset_path(file))
|
15
|
+
File.read(asset_path(file).first)
|
13
16
|
end
|
14
17
|
|
15
18
|
class << self
|
@@ -18,4 +21,4 @@ module Travis
|
|
18
21
|
end
|
19
22
|
end
|
20
23
|
end
|
21
|
-
end
|
24
|
+
end
|
@@ -47,7 +47,7 @@ module Travis
|
|
47
47
|
commands = Travis::CLI.commands.sort_by { |c| c.command_name }
|
48
48
|
template = Assets.read('travis.sh.erb')
|
49
49
|
source = ERB.new(template).result(binding).gsub(/^ +\n/, '')
|
50
|
-
File.write(Assets['travis.sh'], source)
|
50
|
+
File.write(Assets['travis.sh'].first, source)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
data/lib/travis/tools/system.rb
CHANGED
@@ -76,7 +76,7 @@ module Travis
|
|
76
76
|
def has?(command)
|
77
77
|
return false unless unix?
|
78
78
|
@has ||= {}
|
79
|
-
@has.fetch(command) { @has[command] = system "
|
79
|
+
@has.fetch(command) { @has[command] = system "command -v #{command} 2>/dev/null >/dev/null" }
|
80
80
|
end
|
81
81
|
|
82
82
|
def running?(app)
|
data/lib/travis/version.rb
CHANGED
data/travis.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
# general info
|
4
4
|
s.name = "travis"
|
5
|
-
s.version = "1.9.
|
5
|
+
s.version = "1.9.1"
|
6
6
|
s.required_ruby_version = ">= 2.3.0"
|
7
7
|
s.description = "CLI and Ruby client library for Travis CI"
|
8
8
|
s.homepage = "https://github.com/travis-ci/travis.rb"
|
@@ -41,7 +41,6 @@ Gem::Specification.new do |s|
|
|
41
41
|
"Joep van Delft",
|
42
42
|
"Stefan Nordhausen",
|
43
43
|
"Tobias Bieniek",
|
44
|
-
"joshua-anderson",
|
45
44
|
"Adam Baxter",
|
46
45
|
"Alfie John",
|
47
46
|
"Alo\xC3\xAFs Th\xC3\xA9venot",
|
@@ -49,7 +48,7 @@ Gem::Specification.new do |s|
|
|
49
48
|
"Christian H\xC3\xB6ltje",
|
50
49
|
"Dani Hodovic",
|
51
50
|
"Dominic Jodoin",
|
52
|
-
"
|
51
|
+
"Eli Schwartz",
|
53
52
|
"Eugene K",
|
54
53
|
"George Millo",
|
55
54
|
"Gunter Grodotzki",
|
@@ -62,12 +61,10 @@ Gem::Specification.new do |s|
|
|
62
61
|
"Joe Rafaniello",
|
63
62
|
"Jon-Erik Schneiderhan",
|
64
63
|
"Jonas Chromik",
|
65
|
-
"Julia S.Simon",
|
66
64
|
"Marco Craveiro",
|
67
65
|
"Matt",
|
68
66
|
"Matteo Sumberaz",
|
69
67
|
"Matthias Bussonnier",
|
70
|
-
"Michael Mior",
|
71
68
|
"Michael S. Fischer",
|
72
69
|
"Nero Leung",
|
73
70
|
"Nikhil Owalekar",
|
@@ -114,7 +111,6 @@ Gem::Specification.new do |s|
|
|
114
111
|
"vano@mail.mipt.ru",
|
115
112
|
"stefan.nordhausen@immobilienscout24.de",
|
116
113
|
"tobias.bieniek@gmail.com",
|
117
|
-
"j@zatigo.com",
|
118
114
|
"github@voltagex.org",
|
119
115
|
"33c6c91f3bb4a391082e8a29642cafaf@alfie.wtf",
|
120
116
|
"aloisthevenot@srxp.com",
|
@@ -122,7 +118,7 @@ Gem::Specification.new do |s|
|
|
122
118
|
"docwhat@gerf.org",
|
123
119
|
"danihodovic@users.noreply.github.com",
|
124
120
|
"dominic@travis-ci.com",
|
125
|
-
"
|
121
|
+
"eschwartz@archlinux.org",
|
126
122
|
"34233075+eugene-kulak@users.noreply.github.com",
|
127
123
|
"georgejulianmillo@gmail.com",
|
128
124
|
"gunter@grodotzki.co.za",
|
@@ -136,12 +132,10 @@ Gem::Specification.new do |s|
|
|
136
132
|
"joepvd@users.noreply.github.com",
|
137
133
|
"jon-erik.schneiderhan@meyouhealth.com",
|
138
134
|
"Jonas.Chromik@student.hpi.uni-potsdam.de",
|
139
|
-
"julia.simon@biicode.com",
|
140
135
|
"marco.craveiro@gmail.com",
|
141
136
|
"mtoothman@users.noreply.github.com",
|
142
137
|
"gnappoms@gmail.com",
|
143
138
|
"bussonniermatthias@gmail.com",
|
144
|
-
"mmior@uwaterloo.ca",
|
145
139
|
"mfischer@zendesk.com",
|
146
140
|
"neroleung@gmail.com",
|
147
141
|
"nowalekar@tigetext.com",
|
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.9.
|
4
|
+
version: 1.9.2.travis.1279.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hiro Asari
|
@@ -33,7 +33,6 @@ authors:
|
|
33
33
|
- Joep van Delft
|
34
34
|
- Stefan Nordhausen
|
35
35
|
- Tobias Bieniek
|
36
|
-
- joshua-anderson
|
37
36
|
- Adam Baxter
|
38
37
|
- Alfie John
|
39
38
|
- Aloïs Thévenot
|
@@ -41,7 +40,7 @@ authors:
|
|
41
40
|
- Christian Höltje
|
42
41
|
- Dani Hodovic
|
43
42
|
- Dominic Jodoin
|
44
|
-
-
|
43
|
+
- Eli Schwartz
|
45
44
|
- Eugene K
|
46
45
|
- George Millo
|
47
46
|
- Gunter Grodotzki
|
@@ -54,12 +53,10 @@ authors:
|
|
54
53
|
- Joe Rafaniello
|
55
54
|
- Jon-Erik Schneiderhan
|
56
55
|
- Jonas Chromik
|
57
|
-
- Julia S.Simon
|
58
56
|
- Marco Craveiro
|
59
57
|
- Matt
|
60
58
|
- Matteo Sumberaz
|
61
59
|
- Matthias Bussonnier
|
62
|
-
- Michael Mior
|
63
60
|
- Michael S. Fischer
|
64
61
|
- Nero Leung
|
65
62
|
- Nikhil Owalekar
|
@@ -77,7 +74,7 @@ authors:
|
|
77
74
|
autorequire:
|
78
75
|
bindir: bin
|
79
76
|
cert_chain: []
|
80
|
-
date: 2020-
|
77
|
+
date: 2020-09-03 00:00:00.000000000 Z
|
81
78
|
dependencies:
|
82
79
|
- !ruby/object:Gem::Dependency
|
83
80
|
name: faraday
|
@@ -289,7 +286,6 @@ email:
|
|
289
286
|
- vano@mail.mipt.ru
|
290
287
|
- stefan.nordhausen@immobilienscout24.de
|
291
288
|
- tobias.bieniek@gmail.com
|
292
|
-
- j@zatigo.com
|
293
289
|
- github@voltagex.org
|
294
290
|
- 33c6c91f3bb4a391082e8a29642cafaf@alfie.wtf
|
295
291
|
- aloisthevenot@srxp.com
|
@@ -297,7 +293,7 @@ email:
|
|
297
293
|
- docwhat@gerf.org
|
298
294
|
- danihodovic@users.noreply.github.com
|
299
295
|
- dominic@travis-ci.com
|
300
|
-
-
|
296
|
+
- eschwartz@archlinux.org
|
301
297
|
- 34233075+eugene-kulak@users.noreply.github.com
|
302
298
|
- georgejulianmillo@gmail.com
|
303
299
|
- gunter@grodotzki.co.za
|
@@ -311,12 +307,10 @@ email:
|
|
311
307
|
- joepvd@users.noreply.github.com
|
312
308
|
- jon-erik.schneiderhan@meyouhealth.com
|
313
309
|
- Jonas.Chromik@student.hpi.uni-potsdam.de
|
314
|
-
- julia.simon@biicode.com
|
315
310
|
- marco.craveiro@gmail.com
|
316
311
|
- mtoothman@users.noreply.github.com
|
317
312
|
- gnappoms@gmail.com
|
318
313
|
- bussonniermatthias@gmail.com
|
319
|
-
- mmior@uwaterloo.ca
|
320
314
|
- mfischer@zendesk.com
|
321
315
|
- neroleung@gmail.com
|
322
316
|
- nowalekar@tigetext.com
|
@@ -542,8 +536,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
542
536
|
- !ruby/object:Gem::Version
|
543
537
|
version: 1.3.1
|
544
538
|
requirements: []
|
545
|
-
|
546
|
-
rubygems_version: 2.7.7
|
539
|
+
rubygems_version: 3.0.8
|
547
540
|
signing_key:
|
548
541
|
specification_version: 4
|
549
542
|
summary: Travis CI client
|