travis 1.6.18.travis.595.5 → 1.6.18.travis.596.5

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
- YTc0MjU1M2U0OTI3OTkyN2IzMDIzZTUxNjRiYmJjY2ZjNTI4YzBkMQ==
4
+ MDdlMjlkNDAyNDNiOTFlY2E4MThiNGJkNTFjNTU4YTllYjliNzcyNQ==
5
5
  data.tar.gz: !binary |-
6
- YmRlNjg0ODk5ZDNjODg4YTIxM2UxZTU1NTY0N2E0YjlkN2E3OTU4Mw==
6
+ ZWE0MGVjMWYwZTg0NWUyMjk0NWFkNTgyMmJmZTc3MDhiMzgyZDFhMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjA3OTg1MzY2NDBjOTJhY2JiZmM4YzA1NmE3Mjg2MDU1MWM2YzFiNjljZjk5
10
- ZmY4NzJkNzBhZTBhOTk0ZDgzMjdiMmU3YjY3MjBjYTdhZWJiYzU2NzFkMDQz
11
- NzU2OGJjYzIzM2Q1ZjMyNzM5ZWMxMzhjMWE0ZDJlMzdiMGU1Mjc=
9
+ N2JiMmM3ZTk0YmM4ZTlkMzkyMTVhNzdiYTVmMDhjMTgwZmJmNDM4MWMyNzEy
10
+ MjMwOGU4M2IyZDNhZWZiYzE2MjllZGUwNjgyOTY4OTg3NzBhZTM1MmViMDAw
11
+ MzMzODcxNDA1OGMzMTBiODEzMjFhNmEyMzY5NDIxM2U0Y2ZkMzA=
12
12
  data.tar.gz: !binary |-
13
- N2IwNmYzMDNhZTVmZWIyMmJhODZmODE5MjdlMjUwNDIzNjJlZTUwNjljOTM0
14
- MjU3MWVjZGYwOGRlZTQ2NWJmOGI4ZmRmNzA1ZWZkZjc1NmZkNmFiNTRlNjJi
15
- M2Y2ZGY4OTU1YTM2OWMxNzY4YzlhYWYxOTQ5YjE3MTI0OTlhZjM=
13
+ MjMyOGQ0NjQ4NmE1ZjMwMWViMjljNGJhMzNlMTA5NzZlMDI5MzgyYjEyOTE3
14
+ YTE2ZGZlYzExODdlNjQxMGQ4Y2ZlYzc1ZTBlYTRkZThmMDc1NGU3MGFhMzNl
15
+ MmYzNGZhZWQ2OGE0MjA2N2I3M2FlMDM1NTMxZjk5MDMyZjhlMmY=
data/README.md CHANGED
@@ -361,6 +361,16 @@ Lists repositories and displays whether these are active or not. Has a variety o
361
361
  rkh/travis-surveillance (active: no, admin: yes, push: yes, pull: yes)
362
362
  Description: Veille sur un projet.
363
363
 
364
+ In non-interactive mode, it will only output the repository slug, which goes well with xargs:
365
+
366
+ $ travis repos --active --owner travis-ci | xargs -I % travis disable -r %
367
+ travis-ci/artifacts: disabled :(
368
+ travis-ci/canary: disabled :(
369
+ travis-ci/docs-travis-ci-com: disabled :(
370
+ travis-ci/dpl: disabled :(
371
+ travis-ci/gh: disabled :(
372
+ ...
373
+
364
374
  #### `sync`
365
375
 
366
376
  Usage: travis sync [options]
@@ -1783,6 +1793,10 @@ If you have the old `travis-cli` gem installed, you should `gem uninstall travis
1783
1793
 
1784
1794
  ## Version History
1785
1795
 
1796
+ **1.6.18** (not yet released)
1797
+
1798
+ * Have `travis repos` only print repository slugs in non-interactive mode.
1799
+
1786
1800
  **1.6.17** (July 25, 2014)
1787
1801
 
1788
1802
  * Add `travis sshkey` and corresponding Ruby API.
data/examples/cli.md ADDED
@@ -0,0 +1,64 @@
1
+ ## Encrypt a file
2
+
3
+ Assumptions:
4
+
5
+ * The repository is set up on Travis CI
6
+ * You have the latest version of the Travis CI Command Line Client installed and setup up (you are logged in)
7
+ * You have a local copy of the repository and a terminal open where your current working directory is said copy
8
+ * In the repository is a file, called super_secret.txt, that you need on Travis CI but you don't want to publish its content on GitHub.
9
+
10
+ The file might be too large to encrypt it directly via the `travis encrypt` command. However, you can encrypt the file using a passphrase and then encrypt the passphrase. On Travis CI, you can use the passphrase to decrypt the file again.
11
+
12
+ The set up process looks like this:
13
+
14
+ 1. **Come up with a password.** First, you need a password. We recommend generating a random password using a tool like pwgen or 1password. In our example we will use `ahduQu9ushou0Roh`.
15
+ 2. **Encrypt the password and add it to your .travis.yml.** Here we can use the `encrypt` command: `travis encrypt super_secret_password=ahduQu9ushou0Roh --add` - note that if you set this up multiple times for multiple files, you will have to use different variable names so the passwords don't override each other.
16
+ 3. **Encrypt the file locally.** Using a tool that you have installed locally and that is also installed on Travis CI (see below).
17
+ 4. **Set up decryption command.** You should add the command for decrypting the file to the `before_install` section of your `.travis.yml` (see below).
18
+
19
+ Be sure to add `super_secret.txt` to your `.gitignore` list, and to commit both the encrypted file and your `.travis.yml` changes.
20
+
21
+ ### Using GPG
22
+
23
+ Set up:
24
+
25
+ ``` console
26
+ $ travis encrypt super_secret_password=ahduQu9ushou0Roh --add
27
+ $ gpg -c super_secret.txt
28
+ (will prompt you for the password twice, use the same value as for super_secret_password above)
29
+ ```
30
+
31
+ Contents of the `.travis.yml` (besides whatever else you might have in there):
32
+
33
+ ``` yaml
34
+ env:
35
+ global:
36
+ secure: ... encoded secret ...
37
+ before_install:
38
+ - echo $super_secret_password | gpg super_secret.txt.gpg
39
+ ````
40
+
41
+ The encrypted file is called `super_secret.txt.gpg` and has to be committed to the repository.
42
+
43
+ ### Using OpenSSL
44
+
45
+
46
+ Set up:
47
+
48
+ ``` console
49
+ $ travis encrypt super_secret_password=ahduQu9ushou0Roh --add
50
+ $ openssl aes-256-cbc -k "ahduQu9ushou0Roh" -in super_secret.txt -out super_secret.txt.enc
51
+ (keep in mind to replace the password with the proper value)
52
+ ```
53
+
54
+ Contents of the `.travis.yml` (besides whatever else you might have in there):
55
+
56
+ ``` yaml
57
+ env:
58
+ global:
59
+ secure: ... encoded secret ...
60
+ before_install:
61
+ - openssl aes-256-cbc -k "$super_secret_password" -in super_secret.txt.enc -out super_secret.txt -d
62
+ ````
63
+
64
+ The encrypted file is called `super_secret.txt.enc` and has to be committed to the repository.
@@ -14,6 +14,7 @@ module Travis
14
14
 
15
15
  def run
16
16
  repositories.each do |repo|
17
+ next say(repo.slug) unless interactive?
17
18
  state_color = repo.active? ? :green : :yellow
18
19
  say color(repo.slug, [:bold, state_color]) + " "
19
20
  say color("(" << attributes(repo).map { |n,v| "#{n}: #{v ? "yes" : "no"}" }.join(", ") << ")", state_color)
data/travis.gemspec CHANGED
@@ -115,6 +115,7 @@ Gem::Specification.new do |s|
115
115
  "assets/travis.sh",
116
116
  "assets/travis.sh.erb",
117
117
  "bin/travis",
118
+ "examples/cli.md",
118
119
  "examples/org_overview.rb",
119
120
  "examples/pro_auth.rb",
120
121
  "examples/stream.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.18.travis.595.5
4
+ version: 1.6.18.travis.596.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
@@ -312,6 +312,7 @@ files:
312
312
  - assets/travis.sh
313
313
  - assets/travis.sh.erb
314
314
  - bin/travis
315
+ - examples/cli.md
315
316
  - examples/org_overview.rb
316
317
  - examples/pro_auth.rb
317
318
  - examples/stream.rb