travis 1.6.8.travis.456.6 → 1.6.8.travis.457.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDhjMjc4YmU4ODBiODM1NTQ5MGY1YWRmOGU5MDQwYzg2NDg3ZTNhMw==
4
+ NzYzOGQzN2ViYzBlNmM1MWE3NGM1Zjc2YTIyNzBhNzkwMDhiZWNkMg==
5
5
  data.tar.gz: !binary |-
6
- YTA5ODExZTEzZmY2ZmU3YmJhMDlhYjlmY2QwOTBjMDY4YzBlYjM3ZA==
6
+ MjM5YTdmY2Q1YTY1ZDJkZWZjMTRlOWFiMWZjY2NmYWMxOTViMDAzZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGNjOWNhNzM4YjYzZGZiN2I5NWQ1MzViY2E3ZGE2OWIwZjg2MzA1NTk4YTU5
10
- YWQzN2IwNTBkMGM4YWM0NjgzYjRjZTIyMDdhODY2NTY2NzFmYjRjZDM3NmE5
11
- MGM0NzZhODMyMjU1ZGNhY2JjY2E1YzJiNzNlYzZlNjI3NjZkNzE=
9
+ Y2EyODU3YWE5MTAxYjcwMTdlOTVkZjI0ZDdmNjFiMWViMjA0YzRiNDY0YWE2
10
+ ZjBjMzEwMTUwYWViMDI1YmVjZjNjZDI0MTdmZjEwMDg0NzQyNWVkYjIwZjM1
11
+ NTEwYTMyZTlkZTlhZGNjODUyYTdhYjQ3MjQxMDY0YjhiNzQ3MTQ=
12
12
  data.tar.gz: !binary |-
13
- YjBlNzNmNDU0OTdjYzI1ZTY4NmY4YjEwMjdiZTZhNWRiZGU1NzZkODJlNzdj
14
- ODA4Mzg1NGJiYjE3NzU4NGJlNTNkNDI3MWQwMGJiM2IyZDQ4OGZkOWMzNTIw
15
- ZjFmZDg2NDE3NDM5ZWRhMTA5ZTY0Y2QyMDlkYzFkNzRkMWVhNmQ=
13
+ ODdjYmVjNjcyMmRlMTJlODRmMmM3MjEwYjExMzEyYzVmOGVmMzM0NTU5NWU4
14
+ N2I0NGFjYzJmN2ZmYjhlMmM0NGNiMzQyNzRkMTEyMjI4MTkyZGI2MDU0NmEx
15
+ OTFlZjEwZDA3MGM3ZGUyODMxNzAzYTE0NTM4MmFiMjc1OGU1OWE=
data/README.md CHANGED
@@ -35,7 +35,7 @@ The [travis gem](https://rubygems.org/gems/travis) includes both a [command line
35
35
  * [`logs`](#logs) - streams test logs
36
36
  * [`open`](#open) - opens a build or job in the browser
37
37
  * [`pubkey`](#pubkey) - prints out a repository's public key
38
- * [`requests`](#requests) - list build requests
38
+ * [`requests`](#requests) - lists recent requests
39
39
  * [`restart`](#restart) - restarts a build or job
40
40
  * [`settings`](#settings) - access repository settings
41
41
  * [`setup`](#setup) - sets up an addon or deploy target
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" disable:"disables a project" enable:"enables a project" encrypt:"encrypts values for the .travis.yml" endpoint:"displays or changes the API endpoint" help:"helps you out when in dire need of information" history:"displays a projects build history" init:"generates a .travis.yml and enables the project" login:"authenticates against the API and stores the token" logout:"deletes the stored API token" logs:"streams test logs" monitor:"live monitor for what's going on" 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" restart:"restarts a build or job" settings:"access repository settings" setup:"sets up an addon or deploy target" show:"displays a build or job" 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; }
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" disable:"disables a project" enable:"enables a project" encrypt:"encrypts values for the .travis.yml" endpoint:"displays or changes the API endpoint" help:"helps you out when in dire need of information" history:"displays a projects build history" init:"generates a .travis.yml and enables the project" login:"authenticates against the API and stores the token" logout:"deletes the stored API token" logs:"streams test logs" monitor:"live monitor for what's going on" 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" 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=(appfog:"automatic deployment to Appfog" cloudcontrol:"automatic deployment to cloudControl" cloudfiles:"automatic pushing to Rackspace Cloud Files" cloudfoundry:"automatic deployment to Cloud Foundry" divshot:"deployment to Divshot.io" engineyard:"automatic deployment to Engine Yard" heroku:"automatic deployment to Heroku" modulus:"deployment to Modulus" npm:"automatic release to NPM" nodejitsu:"automatic deployment to Nodejitsu" openshift:"automatic deployment to OpenShfit" opsworks:"deployment to OpsWorks" pypi:"automatic deployment to PyPI" rubygems:"automatic release to RubyGems" s:"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") _describe -t common-commands 'common commands' list; }
26
26
  _travis_init() { list=(c:'initialize c project' clojure:'initialize clojure project' cpp:'initialize cpp 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; }
@@ -47,6 +47,7 @@ if type compdef 1>/dev/null 2>/dev/null; then
47
47
  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/']" "--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]" "-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;;
48
48
  report) _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/']" "--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]" "-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[include repositories in report]" "--known-repos[include repositories in report]" '*:file:_files' && return 0;;
49
49
  repos) _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/']" "--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]" "-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 list repositories matching the given pattern (shell style)]" "--match[only list repositories matching the given pattern (shell style)]" "-o[only list repos for a certain owner]" "--owner[only list repos for a certain owner]" "-n[only list repos with a given name]" "--name[only list repos with a given name]" "-a[only list active repositories]" "--active[only list active repositories]" "-A[only list inactive repositories]" "--inactive[only list inactive repositories]" "-d[only list repos with (or without) admin access]" "--admin[only list repos with (or without) admin access]" "-D[only list repos without admin access]" "--no-admin[only list repos without admin access]" '*:file:_files' && return 0;;
50
+ requests) _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/']" "--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]" "-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)]" '*:file:_files' && return 0;;
50
51
  restart) _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/']" "--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]" "-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)]" '*:file:_files' && return 0;;
51
52
  settings) _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/']" "--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]" "-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)]" "--keys[always use setting key instead of description]" "--enable[enable the setting(s)]" "-f[disable the setting(s)]" "--disable[disable the setting(s)]" "-c[change settings interactively]" "--configure[change settings interactively]" '*:file:_files' && return 0;;
52
53
  setup) _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/']" "--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]" "-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)]" "-f[override config section if it already exists]" "--force[override config section if it already exists]" '*:file:_files' && return 0;;
@@ -62,7 +63,7 @@ if type compdef 1>/dev/null 2>/dev/null; then
62
63
  elif type compctl 1>/dev/null 2>/dev/null; then
63
64
  compctl -K _travis travis
64
65
  _travis() { read -cA words && _travis_complete $((${#words} - 1)) "${words[2]}"; }
65
- _travis_commands() { reply=("accounts" "branches" "cache" "cancel" "console" "disable" "enable" "encrypt" "endpoint" "help" "history" "init" "login" "logout" "logs" "monitor" "open" "pubkey" "raw" "report" "repos" "restart" "settings" "setup" "show" "status" "sync" "token" "version" "whatsup" "whoami"); }
66
+ _travis_commands() { reply=("accounts" "branches" "cache" "cancel" "console" "disable" "enable" "encrypt" "endpoint" "help" "history" "init" "login" "logout" "logs" "monitor" "open" "pubkey" "raw" "report" "repos" "requests" "restart" "settings" "setup" "show" "status" "sync" "token" "version" "whatsup" "whoami"); }
66
67
  _travis_setup() { reply=("appfog" "cloudcontrol" "cloudfiles" "cloudfoundry" "divshot" "engineyard" "heroku" "modulus" "npm" "nodejitsu" "openshift" "opsworks" "pypi" "rubygems" "s" "sauce_connect"); }
67
68
  _travis_settings() { reply=(builds_only_with_travis_yml build_pushes build_pull_requests); }
68
69
  _travis_init() { reply=("c" "clojure" "cpp" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"); }
@@ -89,6 +90,7 @@ elif type compctl 1>/dev/null 2>/dev/null; then
89
90
  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" "--org" "--staging" "--token" "-t" "--debug" "--enterprise" "-X" "--adapter" "--json" "--no-json");;
90
91
  report) 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" "--org" "--staging" "--token" "-t" "--debug" "--enterprise" "-X" "--adapter" "--known-repos" "-r");;
91
92
  repos) 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" "--org" "--staging" "--token" "-t" "--debug" "--enterprise" "-X" "--adapter" "--match" "-m" "--owner" "-o" "--name" "-n" "--active" "-a" "--inactive" "-A" "--admin" "-d" "--no-admin" "-D");;
93
+ requests) 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" "--org" "--staging" "--token" "-t" "--debug" "--enterprise" "-X" "--adapter" "--repo" "-r");;
92
94
  restart) 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" "--org" "--staging" "--token" "-t" "--debug" "--enterprise" "-X" "--adapter" "--repo" "-r");;
93
95
  settings) 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" "--org" "--staging" "--token" "-t" "--debug" "--enterprise" "-X" "--adapter" "--repo" "-r" "--keys" "--enable" "--disable" "-f" "--configure" "-c");;
94
96
  setup) 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" "--org" "--staging" "--token" "-t" "--debug" "--enterprise" "-X" "--adapter" "--repo" "-r" "--force" "-f");;
@@ -104,7 +106,7 @@ elif type compctl 1>/dev/null 2>/dev/null; then
104
106
  elif type complete 1>/dev/null 2>/dev/null; then
105
107
  complete -F _travis travis
106
108
  _travis() { _travis_complete "$COMP_CWORD" "${COMP_WORDS[1]}"; }
107
- _travis_commands() { COMPREPLY=( $(compgen -W "accounts branches cache cancel console disable enable encrypt endpoint help history init login logout logs monitor open pubkey raw report repos restart settings setup show status sync token version whatsup whoami" -- "${COMP_WORDS[COMP_CWORD]}") ); }
109
+ _travis_commands() { COMPREPLY=( $(compgen -W "accounts branches cache cancel console disable enable encrypt endpoint help history init login logout logs monitor open pubkey raw report repos requests restart settings setup show status sync token version whatsup whoami" -- "${COMP_WORDS[COMP_CWORD]}") ); }
108
110
  _travis_setup() { COMPREPLY=( $(compgen -W "appfog cloudcontrol cloudfiles cloudfoundry divshot engineyard heroku modulus npm nodejitsu openshift opsworks pypi rubygems s sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
109
111
  _travis_settings() { COMPREPLY=( $(compgen -W "builds_only_with_travis_yml build_pushes build_pull_requests" -- "${COMP_WORDS[COMP_CWORD]}") ); }
110
112
  _travis_init() { COMPREPLY=( $(compgen -W ""c" "clojure" "cpp" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"" -- "${COMP_WORDS[COMP_CWORD]}") ); }
@@ -132,6 +134,7 @@ elif type complete 1>/dev/null 2>/dev/null; then
132
134
  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 --org --staging --token -t --debug --enterprise -X --adapter --json --no-json";;
133
135
  report) 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 --org --staging --token -t --debug --enterprise -X --adapter --known-repos -r";;
134
136
  repos) 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 --org --staging --token -t --debug --enterprise -X --adapter --match -m --owner -o --name -n --active -a --inactive -A --admin -d --no-admin -D";;
137
+ requests) 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 --org --staging --token -t --debug --enterprise -X --adapter --repo -r";;
135
138
  restart) 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 --org --staging --token -t --debug --enterprise -X --adapter --repo -r";;
136
139
  settings) 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 --org --staging --token -t --debug --enterprise -X --adapter --repo -r --keys --enable --disable -f --configure -c";;
137
140
  setup) 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 --org --staging --token -t --debug --enterprise -X --adapter --repo -r --force -f";;
@@ -0,0 +1,44 @@
1
+ require 'travis/cli'
2
+
3
+ module Travis
4
+ module CLI
5
+ class Requests < RepoCommand
6
+ description "lists recent requests"
7
+
8
+ def run
9
+ repository.requests.each do |request|
10
+ style ||= :success if request.accepted?
11
+ style ||= :error if request.rejected?
12
+ style ||= :info
13
+
14
+ case request.event_type
15
+ when 'push'
16
+ result = request.result || "received"
17
+ message = request.message
18
+ message ||= "validation pending" unless request.rejected? or request.accepted?
19
+ message ||= "unknown reason" unless request.accepted?
20
+ message ||= "triggered new build" unless request.rejected?
21
+ description = "push to #{request.branch || request.tag || "???"}"
22
+ when 'pull_request'
23
+ result = request.result || "received"
24
+ message = request.message
25
+ message ||= "HEAD commit not updated" unless request.accepted?
26
+ message ||= "triggered new build" unless request.rejected?
27
+ description = "push to #{request.branch || request.tag || "???"}"
28
+ description = "PR ##{request.pull_request_number}"
29
+ end
30
+
31
+ say [
32
+ color(description, [:bold, style]),
33
+ color(result, style),
34
+ color("(#{message})", style)
35
+ ].join(" ").strip + "\n"
36
+
37
+ say " " + color(request.commit.short_sha, :bold) + " - " + request.commit.subject if request.commit
38
+ say " received at: #{formatter.time(request.created_at)}"
39
+ empty_line
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,36 @@
1
+ require 'travis/client/weak_entity'
2
+
3
+ module Travis
4
+ module Client
5
+ class Request < WeakEntity
6
+ # @!parse attr_reader :commit_id, :repository_id, :created_at, :owner_id, :owner_type, :event_type, :base_commit, :head_commit, :result, :message, :pull_request, :pull_request_number, :pull_request_title, :branch, :tag
7
+ attributes :commit_id, :repository_id, :created_at, :owner_id, :owner_type, :event_type, :base_commit, :head_commit, :result, :message, :pull_request, :pull_request_number, :pull_request_title, :branch, :tag
8
+ time :created_at
9
+
10
+ # @!parse attr_reader :repository
11
+ has :repository, :commit
12
+
13
+ one :request
14
+ many :requests
15
+
16
+ def owner
17
+ repository.owner
18
+ end
19
+
20
+ def accepted?
21
+ result == 'accepted'
22
+ end
23
+
24
+ def rejected?
25
+ result == 'rejected'
26
+ end
27
+
28
+ def inspect_info
29
+ [
30
+ repository && repository.slug,
31
+ event_type, branch || pull_request_number, result
32
+ ].compact.join(" ")
33
+ end
34
+ end
35
+ end
36
+ end
data/travis.gemspec CHANGED
@@ -132,6 +132,7 @@ Gem::Specification.new do |s|
132
132
  "lib/travis/cli/repo_command.rb",
133
133
  "lib/travis/cli/report.rb",
134
134
  "lib/travis/cli/repos.rb",
135
+ "lib/travis/cli/requests.rb",
135
136
  "lib/travis/cli/restart.rb",
136
137
  "lib/travis/cli/settings.rb",
137
138
  "lib/travis/cli/setup.rb",
@@ -175,6 +176,7 @@ Gem::Specification.new do |s|
175
176
  "lib/travis/client/namespace.rb",
176
177
  "lib/travis/client/not_loadable.rb",
177
178
  "lib/travis/client/repository.rb",
179
+ "lib/travis/client/request.rb",
178
180
  "lib/travis/client/restartable.rb",
179
181
  "lib/travis/client/session.rb",
180
182
  "lib/travis/client/settings.rb",
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.8.travis.456.6
4
+ version: 1.6.8.travis.457.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -311,6 +311,7 @@ files:
311
311
  - lib/travis/cli/repo_command.rb
312
312
  - lib/travis/cli/report.rb
313
313
  - lib/travis/cli/repos.rb
314
+ - lib/travis/cli/requests.rb
314
315
  - lib/travis/cli/restart.rb
315
316
  - lib/travis/cli/settings.rb
316
317
  - lib/travis/cli/setup.rb
@@ -354,6 +355,7 @@ files:
354
355
  - lib/travis/client/namespace.rb
355
356
  - lib/travis/client/not_loadable.rb
356
357
  - lib/travis/client/repository.rb
358
+ - lib/travis/client/request.rb
357
359
  - lib/travis/client/restartable.rb
358
360
  - lib/travis/client/session.rb
359
361
  - lib/travis/client/settings.rb