travis 1.6.9.travis.463.6 → 1.6.9.travis.479.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
- Y2VjZWVhN2ZhMWRlZDkwYWI2MTVlNzFmNjY0MDI2MGJkNTM3N2JmNA==
4
+ NTM2YzZkNGMzNTZlMTg2ZDA0MTY4NWJmZmQ0MDhhNTQyYjBjNWU0OQ==
5
5
  data.tar.gz: !binary |-
6
- OTYzYjdjMzE4OTVjZjBkMzEwNGVmYzMzZDY2NTRmOTYwOWFhZTAxNw==
6
+ OTFhMjFiN2Q0NmY1ZTM1YTk0NTJmZGY2MmQ1NTFlMThhMmRhNDU2Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTBjNTI2N2FlNjg0Mjg5NDFlMDdkYTk1NjU0NmQzN2E3YjVhYmFiMTgzMDRm
10
- ZmViZDkwMDU3NWE0ZmM2ZjZhMDdlZjg3MzI1ZThhYWYyNTk1M2IzMjFjZjI3
11
- ZjdkNmQ2MDQ4N2M1MDk1MGQ1MzcxZWUxNTQ1ZWRhZmZkM2Y5ZDM=
9
+ NTJlMTk1MGU5YzVlOGQzNzdkNTA1MDFjYTkxZGU2MzA2ZGVmZTlhOTE5YWE3
10
+ ZWY4ZjdkYTdlY2ZhNWU3ZmY0ZDRlZmQ2OWYwZGQ3NzAxMDRlZjVjOWQ4ZWE5
11
+ MTllMTk0NzI1ZTMzZTVhZDRhMWU5NmVkNTE2NDQzMjRiMjNhNDM=
12
12
  data.tar.gz: !binary |-
13
- MTFhNzBiZjQ4MDQyZTY5MWZkYmE5ZjgzODkzM2ViMTgwYjlmZDRlM2ZiMGI1
14
- MGFiNzE0OTNkNDQ4ZjZhYzhiMTdjMjk4MGEyMjVjZGViZWNjOWZiZjJhMWE2
15
- NjAyY2Y4MzVkNTQzNjg1N2U4Yzc2NjcwZGU5ZWEwYTc0YjRmNDI=
13
+ NGZjMTZmZmVjZDlkMzc3MzdmYTVjNjU0ZTFhNDI1YTBhMzViYzMyYjhjN2Zm
14
+ OThiYzk3MWM0NDg5MTM4NWYwMjc2ZjE2N2UzNWY0ZDgwYmY5ZTI5NDM3MzQ4
15
+ MDZlOGIwMjFlYjlkYjE1ZGNkNzQ5MzhiNjRkMzQ0NzFmZmJjNWQ=
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # The Travis Client [![Build Status](https://travis-ci.org/travis-ci/travis.png?branch=master)](https://travis-ci.org/travis-ci/travis)
1
+ # The Travis Client [![Build Status](https://travis-ci.org/travis-ci/travis.rb.svg?branch=master)](https://travis-ci.org/travis-ci/travis.rb)
2
2
 
3
- ![The Travis Mascot](http://about.travis-ci.org/images/travis-mascot-600px.png)
3
+ ![The Travis Mascot](http://about.travis-ci.org/images/travis-mascot-200px.png)
4
4
 
5
5
  The [travis gem](https://rubygems.org/gems/travis) includes both a [command line client](#command-line-client) and a [Ruby library](#ruby-library) to interface with a Travis CI service. Both work with [travis-ci.org](https://travis-ci.org), [travis-ci.com](https://travis-ci.com) or any custom Travis CI setup you might have. Check out the [installation instructions](#installation) to get it running in no time.
6
6
 
@@ -262,10 +262,10 @@ When monitoring specific repositories, notifications will be turned on by defaul
262
262
 
263
263
  This is really helpful both when working on this client and when exploring the [Travis API](https://api.travis-ci.org). It will simply fire a request against the API endpoint, parse the output and pretty print it. Keep in mind that the client takes care of authentication for you:
264
264
 
265
- $ travis raw /repos/travis-ci/travis
265
+ $ travis raw /repos/travis-ci/travis.rb
266
266
  {"repo"=>
267
267
  {"id"=>409371,
268
- "slug"=>"travis-ci/travis",
268
+ "slug"=>"travis-ci/travis.rb",
269
269
  "description"=>"Travis CI Client (CLI and Ruby library)",
270
270
  "last_build_id"=>4251410,
271
271
  "last_build_number"=>"77",
@@ -309,7 +309,7 @@ When inspecting a bug or reporting an issue, it can be handy to include a report
309
309
  from ...
310
310
 
311
311
 
312
- For issues with the command line tool, please visit https://github.com/travis-ci/travis/issues.
312
+ For issues with the command line tool, please visit https://github.com/travis-ci/travis.rb/issues.
313
313
  For Travis CI in general, go to https://github.com/travis-ci/travis-ci/issues or email support@travis-ci.com.
314
314
 
315
315
  This command can also list all known repos and the endpoint to use for them via the `--known-repos` option.
@@ -412,7 +412,7 @@ It's just a tiny feature, but it allows you to take a look at repositories that
412
412
  If you only want to see what happened in your repositories, add the `--my-repos` flag (short: `-m`):
413
413
 
414
414
  $ travis whatsup -m
415
- travis-ci/travis passed: #169
415
+ travis-ci/travis.rb passed: #169
416
416
  rkh/dpl passed: #50
417
417
  rubinius/rubinius passed: #3235
418
418
  sinatra/sinatra errored: #619
@@ -555,14 +555,14 @@ Or a single job:
555
555
  If you want to turn of a repository temporarily or indefinitely, you can do so with the `disable` command:
556
556
 
557
557
  $ travis disable
558
- travis-ci/travis: disabled :(
558
+ travis-ci/travis.rb: disabled :(
559
559
 
560
560
  #### `enable`
561
561
 
562
562
  With the `enable` command, you can easily activate a project on Travis CI:
563
563
 
564
564
  $ travis enable
565
- travis-ci/travis: enabled :)
565
+ travis-ci/travis.rb: enabled :)
566
566
 
567
567
  It even works when enabling a repo Travis didn't know existed by triggering a sync:
568
568
 
@@ -746,7 +746,7 @@ You can also set certain values via command line flags (see list above):
746
746
  Given a job number, logs simply prints out that job's logs. By default it will display the first job of the latest build.
747
747
 
748
748
  $ travis logs
749
- displaying logs for travis-ci/travis#317.1
749
+ displaying logs for travis-ci/travis.rb#317.1
750
750
  [... more logs ...]
751
751
  Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
752
752
  $ bundle exec rake
@@ -763,22 +763,22 @@ The info line about the job being displayed is written to stderr, the logs itsel
763
763
  It takes an optional argument that can be a job number:
764
764
 
765
765
  $ travis logs 100.3
766
- displaying logs for travis-ci/travis#100.3
766
+ displaying logs for travis-ci/travis.rb#100.3
767
767
 
768
768
  A build number (in which case it will pick the build's first job):
769
769
 
770
770
  $ travis logs 100
771
- displaying logs for travis-ci/travis#100.1
771
+ displaying logs for travis-ci/travis.rb#100.1
772
772
 
773
773
  Just the job suffix, which will pick the corresponding job from the latest build:
774
774
 
775
775
  $ travis logs .2
776
- displaying logs for travis-ci/travis#317.2
776
+ displaying logs for travis-ci/travis.rb#317.2
777
777
 
778
778
  A branch name:
779
779
 
780
780
  $ travis logs ghe
781
- displaying logs for travis-ci/travis#270.1
781
+ displaying logs for travis-ci/travis.rb#270.1
782
782
 
783
783
 
784
784
  #### `open`
@@ -792,14 +792,14 @@ If you just want the URL printed out instead of opened in a browser, pass `--pri
792
792
  If instead you want to open the repository, compare or pull request view on GitHub, use `--github`.
793
793
 
794
794
  $ travis open 56 --print --github
795
- web view: https://github.com/travis-ci/travis/pull/5
795
+ web view: https://github.com/travis-ci/travis.rb/pull/5
796
796
 
797
797
  #### `pubkey`
798
798
 
799
799
  Outputs the public key for a repository.
800
800
 
801
801
  $ travis pubkey
802
- Public key for travis-ci/travis:
802
+ Public key for travis-ci/travis.rb:
803
803
 
804
804
  ssh-rsa ...
805
805
  $ travis pubkey -r rails/rails > rails.key
@@ -807,7 +807,7 @@ Outputs the public key for a repository.
807
807
  The `--pem` flag will print out the key PEM encoded:
808
808
 
809
809
  $ travis pubkey --pem
810
- Public key for travis-ci/travis:
810
+ Public key for travis-ci/travis.rb:
811
811
 
812
812
  -----BEGIN PUBLIC KEY-----
813
813
  ...
@@ -821,7 +821,7 @@ With the `requests` command, you can list the build requests received by Travis
821
821
  push to master accepted (triggered new build)
822
822
  abc51e2 - Merge pull request #847 from gogotanaka/add_readme_ja
823
823
  received at: 2014-02-16 09:26:36
824
-
824
+
825
825
  PR #843 rejected (skipped through commit message)
826
826
  752201c - Update Spanish README with tense, verb, and word corrections. [ci skip]
827
827
  received at: 2014-02-16 05:07:16
@@ -850,7 +850,7 @@ Or a single job:
850
850
  Certain repository settings can be read via the CLI:
851
851
 
852
852
  $ travis settings
853
- Settings for travis-ci/travis:
853
+ Settings for travis-ci/travis.rb:
854
854
  [-] builds_only_with_travis_yml Only run builds with a .travis.yml
855
855
  [+] build_pushes Build pushes
856
856
  [+] build_pull_requests Build pull requests
@@ -858,20 +858,20 @@ Certain repository settings can be read via the CLI:
858
858
  You can also filter the settings by passing them in as arguments:
859
859
 
860
860
  $ travis settings build_pushes build_pull_requests
861
- Settings for travis-ci/travis:
861
+ Settings for travis-ci/travis.rb:
862
862
  [+] build_pushes Build pushes
863
863
  [+] build_pull_requests Build pull requests
864
864
 
865
865
  It is also possible to change these settings via `--enable` and `--disable`:
866
866
 
867
867
  $ travis settings build_pushes --disable
868
- Settings for travis-ci/travis:
868
+ Settings for travis-ci/travis.rb:
869
869
  [-] build_pushes Build pushes
870
870
 
871
871
  Or, alternatively, you can use `-c` to configure the settings interactively:
872
872
 
873
873
  $ travis settings -c
874
- Settings for travis-ci/travis:
874
+ Settings for travis-ci/travis.rb:
875
875
  Only run builds with a .travis.yml? |yes| no
876
876
  Build pushes? |no| yes
877
877
  Build pull requests? |yes|
@@ -910,7 +910,7 @@ Displays general infos about the latest build:
910
910
  Build #77: fix name clash
911
911
  State: passed
912
912
  Type: push
913
- Compare URL: https://github.com/travis-ci/travis/compare/7cc9b739b0b6...39b66ee24abe
913
+ Compare URL: https://github.com/travis-ci/travis.rb/compare/7cc9b739b0b6...39b66ee24abe
914
914
  Duration: 5 min 51 sec
915
915
  Started: 2013-01-19 19:00:49
916
916
  Finished: 2013-01-19 19:02:17
@@ -928,7 +928,7 @@ Any other build:
928
928
  Build #1: add .travis.yml
929
929
  State: failed
930
930
  Type: push
931
- Compare URL: https://github.com/travis-ci/travis/compare/ad817bc37c76...b8c5d3b463e2
931
+ Compare URL: https://github.com/travis-ci/travis.rb/compare/ad817bc37c76...b8c5d3b463e2
932
932
  Duration: 3 min 16 sec
933
933
  Started: 2013-01-13 23:15:22
934
934
  Finished: 2013-01-13 23:21:38
@@ -947,7 +947,7 @@ The last build for a given branch:
947
947
  State: passed
948
948
  Type: push
949
949
  Branch: rkh-debug
950
- Compare URL: https://github.com/travis-ci/travis/compare/8d4aa5254359...7ef33d5e5993
950
+ Compare URL: https://github.com/travis-ci/travis.rb/compare/8d4aa5254359...7ef33d5e5993
951
951
  Duration: 6 min 16 sec
952
952
  Started: 2013-01-19 18:51:17
953
953
  Finished: 2013-01-19 18:52:43
@@ -965,7 +965,7 @@ Or a job:
965
965
  Job #77.3: fix name clash
966
966
  State: passed
967
967
  Type: push
968
- Compare URL: https://github.com/travis-ci/travis/compare/7cc9b739b0b6...39b66ee24abe
968
+ Compare URL: https://github.com/travis-ci/travis.rb/compare/7cc9b739b0b6...39b66ee24abe
969
969
  Duration: 45 sec
970
970
  Started: 2013-01-19 19:00:49
971
971
  Finished: 2013-01-19 19:01:34
@@ -1324,7 +1324,7 @@ The artifacts you usually care for are probably logs. You can reach them directl
1324
1324
  ``` ruby
1325
1325
  require 'travis'
1326
1326
 
1327
- repo = Travis::Repository.find('travis-ci/travis')
1327
+ repo = Travis::Repository.find('travis-ci/travis.rb')
1328
1328
  job = repo.last_build.jobs.first
1329
1329
  puts job.log.body
1330
1330
  ```
@@ -1367,7 +1367,7 @@ Commits cannot be loaded directly. They come as a byproduct of [jobs](#jobs) and
1367
1367
  ``` ruby
1368
1368
  require 'travis'
1369
1369
 
1370
- repo = Travis::Repository.find('travis-ci/travis')
1370
+ repo = Travis::Repository.find('travis-ci/travis.rb')
1371
1371
  commit = repo.last_build.commit
1372
1372
 
1373
1373
  puts "Last tested commit: #{commit.short_sha} on #{commit.branch} by #{commit.author_name} - #{commit.subject}"
@@ -1425,7 +1425,7 @@ session.access_token = "secret_token" # access token to use
1425
1425
  session.api_endpoint = "http://localhost:3000/" # api endpoint to talk to
1426
1426
  session.github_auth("github_token") # log in with a github token
1427
1427
  session.repos(owner_name: 'travis-ci') # all travis-ci/* projects
1428
- session.repo('travis-ci/travis') # this project
1428
+ session.repo('travis-ci/travis.rb') # this project
1429
1429
  session.repo(409371) # same as the one above
1430
1430
  session.build(4266036) # build with id 4266036
1431
1431
  session.job(4266037) # job with id 4266037
@@ -1530,6 +1530,8 @@ Now make sure everything is working:
1530
1530
  $ travis version
1531
1531
  1.6.8
1532
1532
 
1533
+ See also [Note on Ubuntu](#note-on-ubuntu) below.
1534
+
1533
1535
  ### Development Version
1534
1536
 
1535
1537
  You can also install the development version via RubyGems:
@@ -1557,11 +1559,19 @@ On Windows, we recommend using the [RubyInstaller](http://rubyinstaller.org/), w
1557
1559
 
1558
1560
  On other Unix systems, like Linux, use your package system to install Ruby. Please inquire before hand which package you might actually want to install, as for some distributions `ruby` might actually still be 1.8.7 or older.
1559
1561
 
1560
- Ubuntu and Debian:
1562
+ Debian:
1561
1563
 
1562
- $ sudo apt-get install ruby1.9.3 ruby-switch
1564
+ $ sudo apt-get install ruby1.9.3 ruby1.9.3-dev ruby-switch
1563
1565
  $ sudo ruby-switch --set ruby1.9.3
1564
1566
 
1567
+ Ubuntu:
1568
+
1569
+ $ sudo apt-get install python-software-properties
1570
+ $ sudo apt-add-repository ppa:brightbox/ruby-ng
1571
+ $ sudo apt-get update
1572
+ $ sudo apt-get install ruby2.1 ruby-switch
1573
+ $ sudo ruby-switch --set ruby2.1
1574
+
1565
1575
  Fedora:
1566
1576
 
1567
1577
  $ sudo yum install ruby
@@ -1570,6 +1580,18 @@ Arch Linux:
1570
1580
 
1571
1581
  $ sudo pacman -S ruby
1572
1582
 
1583
+ #### Note on Ubuntu
1584
+
1585
+ On certain versions of Ubuntu (e.g., 13.10), you need to install the corresponding `-dev` package
1586
+ in order to build the C extension on which `travis` gem depends.
1587
+
1588
+ For the stock Ubuntu 13.10, run:
1589
+
1590
+ $ sudo apt-get install ruby1.9.1-dev
1591
+
1592
+ If you updated to Ruby 2.1 as shown above:
1593
+
1594
+ $ sudo apt-get install ruby2.1-dev
1573
1595
 
1574
1596
  #### Ruby versioning tools
1575
1597
 
@@ -1586,6 +1608,10 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
1586
1608
  **1.6.9** (not yet released)
1587
1609
 
1588
1610
  * Add `--limit` to `travis requests`.
1611
+ * Add `travis setup releases`.
1612
+ * Desktop notifications via libnotify are now transient (disappear on their own if the user is active).
1613
+ * Update Rubinius version generated by `travis init ruby`.
1614
+ * Improve setup when running `travis` executable that has not been installed via RubyGems.
1589
1615
 
1590
1616
  **1.6.8** (March 12, 2014)
1591
1617
 
@@ -21,7 +21,7 @@ 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
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
- _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; }
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" releases:"Upload Assets to GitHub Releases" 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; }
27
27
  _travis_option() {
@@ -64,7 +64,7 @@ elif type compctl 1>/dev/null 2>/dev/null; then
64
64
  compctl -K _travis travis
65
65
  _travis() { read -cA words && _travis_complete $((${#words} - 1)) "${words[2]}"; }
66
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"); }
67
- _travis_setup() { reply=("appfog" "cloudcontrol" "cloudfiles" "cloudfoundry" "divshot" "engineyard" "heroku" "modulus" "npm" "nodejitsu" "openshift" "opsworks" "pypi" "rubygems" "s" "sauce_connect"); }
67
+ _travis_setup() { reply=("appfog" "cloudcontrol" "cloudfiles" "cloudfoundry" "divshot" "engineyard" "heroku" "modulus" "npm" "nodejitsu" "openshift" "opsworks" "pypi" "releases" "rubygems" "s" "sauce_connect"); }
68
68
  _travis_settings() { reply=(builds_only_with_travis_yml build_pushes build_pull_requests); }
69
69
  _travis_init() { reply=("c" "clojure" "cpp" "erlang" "go" "groovy" "haskell" "java" "node_js" "objective-c" "perl" "php" "python" "ruby" "scala"); }
70
70
  _travis_option() {
@@ -107,7 +107,7 @@ elif type complete 1>/dev/null 2>/dev/null; then
107
107
  complete -F _travis travis
108
108
  _travis() { _travis_complete "$COMP_CWORD" "${COMP_WORDS[1]}"; }
109
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]}") ); }
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]}") ); }
110
+ _travis_setup() { COMPREPLY=( $(compgen -W "appfog cloudcontrol cloudfiles cloudfoundry divshot engineyard heroku modulus npm nodejitsu openshift opsworks pypi releases rubygems s sauce_connect" -- "${COMP_WORDS[COMP_CWORD]}") ); }
111
111
  _travis_settings() { COMPREPLY=( $(compgen -W "builds_only_with_travis_yml build_pushes build_pull_requests" -- "${COMP_WORDS[COMP_CWORD]}") ); }
112
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]}") ); }
113
113
  _travis_option() {
@@ -15,7 +15,7 @@ module Travis
15
15
  display("Endpoints", :endpoints)
16
16
  display("Known Repositories", :known_repos) if known_repos?
17
17
  display_error
18
- say "For issues with the command line tool, please visit #{color("https://github.com/travis-ci/travis/issues", :underline)}."
18
+ say "For issues with the command line tool, please visit #{color("https://github.com/travis-ci/travis.rb/issues", :underline)}."
19
19
  say "For Travis CI in general, go to #{color("https://github.com/travis-ci/travis-ci/issues", :underline)} or email #{color("support@travis-ci.com", :underline)}."
20
20
  end
21
21
 
@@ -19,6 +19,7 @@ module Travis
19
19
  autoload :OpsWorks, 'travis/cli/setup/opsworks'
20
20
  autoload :SauceConnect, 'travis/cli/setup/sauce_connect'
21
21
  autoload :Modulus, 'travis/cli/setup/modulus'
22
+ autoload :Releases, 'travis/cli/setup/releases'
22
23
  autoload :Service, 'travis/cli/setup/service'
23
24
 
24
25
  description "sets up an addon or deploy target"
@@ -0,0 +1,34 @@
1
+ require 'travis/cli/setup'
2
+ require 'travis/tools/github'
3
+
4
+ module Travis
5
+ module CLI
6
+ class Setup
7
+ class Releases < Service
8
+ description "Upload Assets to GitHub Releases"
9
+
10
+ def run
11
+ deploy 'releases' do |config|
12
+ github.with_token { |t| config['api_key'] = t }
13
+ config['file'] = ask("File to Upload: ").to_s
14
+ end
15
+ end
16
+
17
+ def github
18
+ @github ||= begin
19
+ load_gh
20
+ Tools::Github.new(session.config['github']) do |g|
21
+ g.drop_token = false
22
+ g.ask_login = proc { ask("Username: ") }
23
+ g.ask_password = proc { |user| ask("Password for #{user}: ") { |q| q.echo = "*" } }
24
+ g.ask_otp = proc { |user| ask("Two-factor authentication code for #{user}: ") }
25
+ g.debug = proc { |log| debug(log) }
26
+ g.after_tokens = proc { g.explode = true and error("no suitable github token found") }
27
+ g.scopes = org? ? ['public_repo'] : ['repo']
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -57,7 +57,7 @@ module Travis
57
57
 
58
58
  class LibNotify
59
59
  def notify(title, body)
60
- system 'notify-send', '--expire-time=10000', '-i', ICON, title, CGI.escapeHTML(body)
60
+ system 'notify-send', '--expire-time=10000', '-h', 'int:transient:1', '-i', ICON, title, CGI.escapeHTML(body)
61
61
  end
62
62
 
63
63
  def available?
@@ -15,14 +15,14 @@ describe Travis::CLI::Init do
15
15
  end
16
16
 
17
17
  example "travis init fakelanguage" do
18
- run_cli('init', 'fakelanguage', '--skip-enable', '-r', 'travis-ci/travis').should_not be_success
18
+ run_cli('init', 'fakelanguage', '--skip-enable', '-r', 'travis-ci/travis.rb').should_not be_success
19
19
  stderr.should be == "unknown language fakelanguage\n"
20
20
  end
21
21
 
22
22
  shared_examples_for 'travis init' do |language|
23
23
  example "travis init #{language} (empty directory)" do
24
24
  File.exist?('.travis.yml').should be_false
25
- run_cli('init', language, '--skip-enable', '-r', 'travis-ci/travis').should be_success
25
+ run_cli('init', language, '--skip-enable', '-r', 'travis-ci/travis.rb').should be_success
26
26
  stdout.should be == ".travis.yml file created!\n"
27
27
  File.exist?('.travis.yml').should be_true
28
28
  File.read('.travis.yml').should include("language: #{language}")
@@ -30,14 +30,14 @@ describe Travis::CLI::Init do
30
30
 
31
31
  example "travis init #{language} (.travis.yml already exists, using --force)" do
32
32
  File.open(".travis.yml", "w") { |f| f << "old file" }
33
- run_cli('init', language, '--force', '--skip-enable', '-r', 'travis-ci/travis').should be_success
33
+ run_cli('init', language, '--force', '--skip-enable', '-r', 'travis-ci/travis.rb').should be_success
34
34
  stdout.should be == ".travis.yml file created!\n"
35
35
  File.read(".travis.yml").should_not be == "old file"
36
36
  end
37
37
 
38
38
  example "travis init #{language} (.travis.yml already exists, not using --force)" do
39
39
  File.open(".travis.yml", "w") { |f| f << "old file" }
40
- run_cli('init', language, '--skip-enable', '-r', 'travis-ci/travis').should_not be_success
40
+ run_cli('init', language, '--skip-enable', '-r', 'travis-ci/travis.rb').should_not be_success
41
41
  stderr.should be == ".travis.yml already exists, use --force to override\n"
42
42
  File.read('.travis.yml').should be == "old file"
43
43
  end
@@ -47,7 +47,7 @@ describe Travis::CLI::Init do
47
47
  it_should_behave_like 'travis init', 'c'
48
48
 
49
49
  let :result do
50
- run_cli('init', 'c', '--skip-enable', '-r', 'travis-ci/travis')
50
+ run_cli('init', 'c', '--skip-enable', '-r', 'travis-ci/travis.rb')
51
51
  YAML.load_file('.travis.yml')
52
52
  end
53
53
 
@@ -66,7 +66,7 @@ describe Travis::CLI::Init do
66
66
  it_should_behave_like 'travis init', 'cpp'
67
67
 
68
68
  let :result do
69
- run_cli('init', 'cpp', '--skip-enable', '-r', 'travis-ci/travis')
69
+ run_cli('init', 'cpp', '--skip-enable', '-r', 'travis-ci/travis.rb')
70
70
  YAML.load_file('.travis.yml')
71
71
  end
72
72
 
@@ -81,7 +81,7 @@ describe Travis::CLI::Init do
81
81
  it_should_behave_like 'travis init', 'erlang'
82
82
 
83
83
  let :result do
84
- run_cli('init', 'erlang', '--skip-enable', '-r', 'travis-ci/travis')
84
+ run_cli('init', 'erlang', '--skip-enable', '-r', 'travis-ci/travis.rb')
85
85
  YAML.load_file('.travis.yml')
86
86
  end
87
87
 
@@ -95,7 +95,7 @@ describe Travis::CLI::Init do
95
95
  it_should_behave_like 'travis init', 'go'
96
96
 
97
97
  let :result do
98
- run_cli('init', 'go', '--skip-enable', '-r', 'travis-ci/travis')
98
+ run_cli('init', 'go', '--skip-enable', '-r', 'travis-ci/travis.rb')
99
99
  YAML.load_file('.travis.yml')
100
100
  end
101
101
 
@@ -118,7 +118,7 @@ describe Travis::CLI::Init do
118
118
  it_should_behave_like 'travis init', 'java'
119
119
 
120
120
  let :result do
121
- run_cli('init', 'java', '--skip-enable', '-r', 'travis-ci/travis')
121
+ run_cli('init', 'java', '--skip-enable', '-r', 'travis-ci/travis.rb')
122
122
  YAML.load_file('.travis.yml')
123
123
  end
124
124
 
@@ -133,7 +133,7 @@ describe Travis::CLI::Init do
133
133
  it_should_behave_like 'travis init', 'node_js'
134
134
 
135
135
  let :result do
136
- run_cli('init', 'node_js', '--skip-enable', '-r', 'travis-ci/travis')
136
+ run_cli('init', 'node_js', '--skip-enable', '-r', 'travis-ci/travis.rb')
137
137
  YAML.load_file('.travis.yml')
138
138
  end
139
139
 
@@ -152,7 +152,7 @@ describe Travis::CLI::Init do
152
152
  it_should_behave_like 'travis init', 'perl'
153
153
 
154
154
  let :result do
155
- run_cli('init', 'perl', '--skip-enable', '-r', 'travis-ci/travis')
155
+ run_cli('init', 'perl', '--skip-enable', '-r', 'travis-ci/travis.rb')
156
156
  YAML.load_file('.travis.yml')
157
157
  end
158
158
 
@@ -167,7 +167,7 @@ describe Travis::CLI::Init do
167
167
  it_should_behave_like 'travis init', 'php'
168
168
 
169
169
  let :result do
170
- run_cli('init', 'php', '--skip-enable', '-r', 'travis-ci/travis')
170
+ run_cli('init', 'php', '--skip-enable', '-r', 'travis-ci/travis.rb')
171
171
  YAML.load_file('.travis.yml')
172
172
  end
173
173
 
@@ -182,7 +182,7 @@ describe Travis::CLI::Init do
182
182
  it_should_behave_like 'travis init', 'python'
183
183
 
184
184
  let :result do
185
- run_cli('init', 'python', '--skip-enable', '-r', 'travis-ci/travis')
185
+ run_cli('init', 'python', '--skip-enable', '-r', 'travis-ci/travis.rb')
186
186
  YAML.load_file('.travis.yml')
187
187
  end
188
188
 
@@ -197,7 +197,7 @@ describe Travis::CLI::Init do
197
197
  it_should_behave_like 'travis init', 'ruby'
198
198
 
199
199
  let :result do
200
- run_cli('init', 'ruby', '--skip-enable', '-r', 'travis-ci/travis')
200
+ run_cli('init', 'ruby', '--skip-enable', '-r', 'travis-ci/travis.rb')
201
201
  YAML.load_file('.travis.yml')
202
202
  end
203
203
 
@@ -213,7 +213,7 @@ describe Travis::CLI::Init do
213
213
  it_should_behave_like 'travis init', 'scala'
214
214
 
215
215
  let :result do
216
- run_cli('init', 'scala', '--skip-enable', '-r', 'travis-ci/travis')
216
+ run_cli('init', 'scala', '--skip-enable', '-r', 'travis-ci/travis.rb')
217
217
  YAML.load_file('.travis.yml')
218
218
  end
219
219
 
@@ -3,22 +3,22 @@ require 'spec_helper'
3
3
  describe Travis::CLI::Open do
4
4
  example 'travis open -p' do
5
5
  run_cli('open', '-p').should be_success
6
- stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis/)
6
+ stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis\.rb/)
7
7
  end
8
8
 
9
9
  example 'travis open 6180 -p' do
10
10
  run_cli('open', '6180', '-p').should be_success
11
- stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis\/builds\/4125095/)
11
+ stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis\.rb\/builds\/4125095/)
12
12
  end
13
13
 
14
14
  example 'travis open 6180.1 -p' do
15
15
  run_cli('open', '6180.1', '-p').should be_success
16
- stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis\/jobs\/4125096/)
16
+ stdout.should match(/https:\/\/travis-ci.org\/[\w\W]*\/travis\.rb\/jobs\/4125096/)
17
17
  end
18
18
 
19
19
  example 'travis open -pg' do
20
20
  run_cli('open', '-pg').should be_success
21
- stdout.should match(/https:\/\/github.com\/[\w\W]*\/travis/)
21
+ stdout.should match(/https:\/\/github.com\/[\w\W]*\/travis\.rb/)
22
22
  end
23
23
 
24
24
  example 'travis open 6180 -pg' do
@@ -664,7 +664,7 @@ module Travis
664
664
  "$ export GEM=railties\n"}}.to_json
665
665
  end
666
666
 
667
- get '/repos/*/travis' do
667
+ get '/repos/*/travis.rb' do
668
668
  # hack hack
669
669
  request.path_info = '/repos/rails/rails'
670
670
  pass
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.name = "travis"
5
5
  s.version = "1.6.8"
6
6
  s.description = "CLI and Ruby client library for Travis CI"
7
- s.homepage = "https://github.com/travis-ci/travis"
7
+ s.homepage = "https://github.com/travis-ci/travis.rb"
8
8
  s.summary = "Travis CI client"
9
9
  s.license = "MIT"
10
10
  s.executables = ["travis"]
@@ -14,12 +14,15 @@ Gem::Specification.new do |s|
14
14
  "Konstantin Haase",
15
15
  "Henrik Hodne",
16
16
  "Aaron Hill",
17
- "Peter Souter",
18
17
  "Hiro Asari",
18
+ "Peter Souter",
19
19
  "Peter van Dijk",
20
20
  "joshua-anderson",
21
21
  "Max Barnash",
22
22
  "Mathias Meyer",
23
+ "Josh Kalderimis",
24
+ "Joshua Anderson",
25
+ "Justin Lambert",
23
26
  "Adrien Brault",
24
27
  "Laurent Petit",
25
28
  "Maarten van Vliet",
@@ -29,13 +32,14 @@ Gem::Specification.new do |s|
29
32
  "Piotr Sarnacki",
30
33
  "Rapha\xC3\xABl Pinson",
31
34
  "Tobias Wilken",
35
+ "Zachary Scott",
32
36
  "jeffdh",
37
+ "john muhl",
33
38
  "Daniel Chatfield",
34
39
  "Adam Lavin",
35
40
  "Benjamin Manns",
36
41
  "Jacob Burkhart",
37
- "Josh Kalderimis",
38
- "Justin Lambert"
42
+ "Jonne Ha\xC3\x9F"
39
43
  ]
40
44
 
41
45
  # generated from git shortlog -sne
@@ -43,29 +47,33 @@ Gem::Specification.new do |s|
43
47
  "konstantin.mailinglists@googlemail.com",
44
48
  "aa1ronham@gmail.com",
45
49
  "me@henrikhodne.com",
50
+ "asari.ruby@gmail.com",
46
51
  "p.morsou@gmail.com",
47
52
  "henrik@hodne.io",
48
- "asari.ruby@gmail.com",
49
53
  "peter.van.dijk@netherlabs.nl",
50
54
  "j@zatigo.com",
51
55
  "i.am@anhero.ru",
52
56
  "meyer@paperplanes.de",
53
- "adam@lavoaster.co.uk",
57
+ "j@zatigo.com",
58
+ "jlambert@eml.cc",
59
+ "benmanns@gmail.com",
54
60
  "adrien.brault@gmail.com",
55
61
  "laurent.petit@gmail.com",
56
62
  "maartenvanvliet@gmail.com",
57
63
  "mario@mariovisic.com",
58
- "jlambert@eml.cc",
59
- "josh.kalderimis@gmail.com",
60
64
  "miro@hroncok.cz",
61
65
  "neamar@neamar.fr",
62
- "jburkhart@engineyard.com",
63
66
  "drogus@gmail.com",
64
67
  "raphael.pinson@camptocamp.com",
65
68
  "tw@cloudcontrol.de",
69
+ "e@zzak.io",
66
70
  "jeffdh@gmail.com",
71
+ "git@johnmuhl.com",
67
72
  "chatfielddaniel@gmail.com",
68
- "benmanns@gmail.com"
73
+ "adam@lavoaster.co.uk",
74
+ "jburkhart@engineyard.com",
75
+ "me@jhass.eu",
76
+ "josh.kalderimis@gmail.com"
69
77
  ]
70
78
 
71
79
  # generated from git ls-files
@@ -149,6 +157,7 @@ Gem::Specification.new do |s|
149
157
  "lib/travis/cli/setup/open_shift.rb",
150
158
  "lib/travis/cli/setup/opsworks.rb",
151
159
  "lib/travis/cli/setup/pypi.rb",
160
+ "lib/travis/cli/setup/releases.rb",
152
161
  "lib/travis/cli/setup/ruby_gems.rb",
153
162
  "lib/travis/cli/setup/s3.rb",
154
163
  "lib/travis/cli/setup/sauce_connect.rb",
metadata CHANGED
@@ -1,18 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.9.travis.463.6
4
+ version: 1.6.9.travis.479.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  - Henrik Hodne
9
9
  - Aaron Hill
10
- - Peter Souter
11
10
  - Hiro Asari
11
+ - Peter Souter
12
12
  - Peter van Dijk
13
13
  - joshua-anderson
14
14
  - Max Barnash
15
15
  - Mathias Meyer
16
+ - Josh Kalderimis
17
+ - Joshua Anderson
18
+ - Justin Lambert
16
19
  - Adrien Brault
17
20
  - Laurent Petit
18
21
  - Maarten van Vliet
@@ -22,17 +25,18 @@ authors:
22
25
  - Piotr Sarnacki
23
26
  - Raphaël Pinson
24
27
  - Tobias Wilken
28
+ - Zachary Scott
25
29
  - jeffdh
30
+ - john muhl
26
31
  - Daniel Chatfield
27
32
  - Adam Lavin
28
33
  - Benjamin Manns
29
34
  - Jacob Burkhart
30
- - Josh Kalderimis
31
- - Justin Lambert
35
+ - Jonne Haß
32
36
  autorequire:
33
37
  bindir: bin
34
38
  cert_chain: []
35
- date: 2014-03-14 00:00:00.000000000 Z
39
+ date: 2014-04-08 00:00:00.000000000 Z
36
40
  dependencies:
37
41
  - !ruby/object:Gem::Dependency
38
42
  name: faraday
@@ -221,29 +225,33 @@ email:
221
225
  - konstantin.mailinglists@googlemail.com
222
226
  - aa1ronham@gmail.com
223
227
  - me@henrikhodne.com
228
+ - asari.ruby@gmail.com
224
229
  - p.morsou@gmail.com
225
230
  - henrik@hodne.io
226
- - asari.ruby@gmail.com
227
231
  - peter.van.dijk@netherlabs.nl
228
232
  - j@zatigo.com
229
233
  - i.am@anhero.ru
230
234
  - meyer@paperplanes.de
231
- - adam@lavoaster.co.uk
235
+ - j@zatigo.com
236
+ - jlambert@eml.cc
237
+ - benmanns@gmail.com
232
238
  - adrien.brault@gmail.com
233
239
  - laurent.petit@gmail.com
234
240
  - maartenvanvliet@gmail.com
235
241
  - mario@mariovisic.com
236
- - jlambert@eml.cc
237
- - josh.kalderimis@gmail.com
238
242
  - miro@hroncok.cz
239
243
  - neamar@neamar.fr
240
- - jburkhart@engineyard.com
241
244
  - drogus@gmail.com
242
245
  - raphael.pinson@camptocamp.com
243
246
  - tw@cloudcontrol.de
247
+ - e@zzak.io
244
248
  - jeffdh@gmail.com
249
+ - git@johnmuhl.com
245
250
  - chatfielddaniel@gmail.com
246
- - benmanns@gmail.com
251
+ - adam@lavoaster.co.uk
252
+ - jburkhart@engineyard.com
253
+ - me@jhass.eu
254
+ - josh.kalderimis@gmail.com
247
255
  executables:
248
256
  - travis
249
257
  extensions: []
@@ -328,6 +336,7 @@ files:
328
336
  - lib/travis/cli/setup/open_shift.rb
329
337
  - lib/travis/cli/setup/opsworks.rb
330
338
  - lib/travis/cli/setup/pypi.rb
339
+ - lib/travis/cli/setup/releases.rb
331
340
  - lib/travis/cli/setup/ruby_gems.rb
332
341
  - lib/travis/cli/setup/s3.rb
333
342
  - lib/travis/cli/setup/sauce_connect.rb
@@ -406,7 +415,7 @@ files:
406
415
  - spec/support/helpers.rb
407
416
  - spec/travis_spec.rb
408
417
  - travis.gemspec
409
- homepage: https://github.com/travis-ci/travis
418
+ homepage: https://github.com/travis-ci/travis.rb
410
419
  licenses:
411
420
  - MIT
412
421
  metadata: {}