travish 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c366abeba5827d1aebfcd355aef252f83182b168
4
- data.tar.gz: bba5edc2c510e5285ceeb08589bfce8c030bf4df
3
+ metadata.gz: 88badcd3b793a31f73f2192661d5bc50594ade47
4
+ data.tar.gz: 9f70db2307b4231bc1ada800e6fb7d1a4079c6b4
5
5
  SHA512:
6
- metadata.gz: 601836afba0897ae33cebbb573b6f29cce17b8c749ea34921a1202e6dffde3d833b0452cf708161a8e7b67691dedb56fb6f6a2baf28b3c1630e3ebab330dbba6
7
- data.tar.gz: d6b874ddd50cf66eb78aa9d5e4c2a91e93b162530bffd202af5ca8e4300946144d2568cd7f1c688dcabbe17ee40232c534c1faf658cad2bb6c137beb0fb0960b
6
+ metadata.gz: c6870598eb88091bc14159b95533500d5f39e650f063afd0e84ebe315c665beb511680147cffe46ef09976a80fe8a7b6edfbaf0bc021543838a0a5d5debccf4e
7
+ data.tar.gz: d8930e6324415fc2e39fb621b9703312c60201e115628f3b2f18d10fc91776583af3cf9d1454b95469f4d5d4c6141769cb39d50ec2af2ba079aeaaf41ec6405c
@@ -93,3 +93,6 @@ DEPENDENCIES
93
93
  rspec (~> 3.2.0)
94
94
  shoulda
95
95
  simplecov
96
+
97
+ BUNDLED WITH
98
+ 1.10.0
data/README.md CHANGED
@@ -1,6 +1,53 @@
1
- = travish
1
+ ### travish
2
2
 
3
- A super, super, super simple tool for running travis.yml files. Barely supports any of the travis features.
3
+ A super, super, super simple tool for running travis.yml files. Supports enough features that you can probably make it work if you define all your own steps.
4
+
5
+ Taking a reasonably complex `.travis.yml` file ( from [Eigen](https://github.com/artsy/eigen/blob/master/.travis.yml) )
6
+
7
+ ``` yaml
8
+ osx_image: xcode61
9
+ language: objective-c
10
+
11
+ env:
12
+ global:
13
+ secure: "nNOR1HgbuY1Z1SgsHyn2p2EtcC7N8HMJvv3BrQwnY7Fzg6dkIFWISAZYzzijXaqN0BJ+lvKHSO8F4HjWRL64x868bPSMdf3xlqG2VR5yvKsFfpjwqxoyDsBYc68VPsH+tcZqQt4SC2wAqGSkOOF3Pn/4yGyoCGZWWq05cN05las="
14
+
15
+ cache:
16
+ - bundler
17
+
18
+ before_install:
19
+ - 'echo ''gem: --no-ri --no-rdoc'' > ~/.gemrc'
20
+ - echo "machine github.com login $GITHUB_API_KEY" > ~/.netrc
21
+ - chmod 600 ~/.netrc
22
+ - pod repo add artsy https://github.com/artsy/Specs.git
23
+
24
+ before_script:
25
+ - make ci
26
+
27
+ install:
28
+ - bundle install --jobs=3 --retry=3 --deployment --path=${BUNDLE_PATH:-vendor/bundle}
29
+ - make oss
30
+ - bundle exec pod install
31
+
32
+ script:
33
+ - make test
34
+ - make lint
35
+
36
+ notifications:
37
+ slack:
38
+ secure: "fXmNnx6XW5OvT/j2jSSHYd3mHwbL+GzUSUSWmZVT0Vx/Ga5jXINTOYRY/9PYgJMqdL8a/L0Mf/18ZZ+tliPlWQ/DnfTz1a3Q/Pf94hfYSGhSGlQC/eXYcpOm/dNOKYQ3sr4tqXtTPylPUDXHeiM2D59ggdlUvVwcALGgHizajPQ="
39
+ ```
40
+
41
+ Running `travish run` will execute all of your commands and set up any ENV variables that are _not_ secure. Running a full build of your test suite.
42
+
43
+ ## Things it doesnt do
44
+
45
+ * Support notifications.
46
+ * Support secure env variables.
47
+ * Support secure anything really.
48
+ * Support the default script stages that are ran when a stage is not included.
49
+
50
+ I'm open to PRs for any of these things.
4
51
 
5
52
  ## Contributing to travish
6
53
 
@@ -10,6 +57,7 @@ A super, super, super simple tool for running travis.yml files. Barely supports
10
57
  * Start a feature/bugfix branch.
11
58
  * Commit and push until you are happy with your contribution.
12
59
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
60
+ * You can run tests by running the command `rspec`
13
61
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
62
 
15
63
  ### Copyright
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -17,7 +17,7 @@ module Travish
17
17
  def run
18
18
  validate
19
19
  travis_file = default_yml.merge local_travis_yml
20
- parser = EnvironmentParser.new(travis_file['env']['global'], ENV)
20
+ parser = EnvironmentParser.new(travis_file.fetch('env', {}).fetch('global', {}), ENV)
21
21
 
22
22
  run_commands(travis_file["before_install"], parser.environment_hash)
23
23
  run_commands(travis_file["install"], parser.environment_hash)
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: travish 0.1.0 ruby lib
5
+ # stub: travish 0.1.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "travish"
9
- s.version = "0.1.0"
9
+ s.version = "0.1.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Orta Therox"]
14
- s.date = "2015-04-07"
14
+ s.date = "2015-06-27"
15
15
  s.description = " Emulates a tiny subset of the travis workflow for running your own CI based on the .travis.yml "
16
16
  s.email = "orta.therox@gmail.com"
17
17
  s.executables = ["travish"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-07 00:00:00.000000000 Z
11
+ date: 2015-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda