travish 0.1.1 → 1.0.0

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: 88badcd3b793a31f73f2192661d5bc50594ade47
4
- data.tar.gz: 9f70db2307b4231bc1ada800e6fb7d1a4079c6b4
3
+ metadata.gz: 620b1024f521833916fff715daf8540ef52e058f
4
+ data.tar.gz: 61345dca75c8406efff9c87a1ca123045997c2e0
5
5
  SHA512:
6
- metadata.gz: c6870598eb88091bc14159b95533500d5f39e650f063afd0e84ebe315c665beb511680147cffe46ef09976a80fe8a7b6edfbaf0bc021543838a0a5d5debccf4e
7
- data.tar.gz: d8930e6324415fc2e39fb621b9703312c60201e115628f3b2f18d10fc91776583af3cf9d1454b95469f4d5d4c6141769cb39d50ec2af2ba079aeaaf41ec6405c
6
+ metadata.gz: e620e6e8dc2e8dc0a35ad294f5699cf81f11e410b2c3dea60a769a231413b892dd69426680284c5caafebf66285849b16b69406e3f171a503d378d252010e027
7
+ data.tar.gz: 56076efaec173a0ee039cb0a1c63984212bcc170569319450e86483d40938258091905f6a49a3e997636c49ffb18d8a39971a50ceabc84d8299687c13804498e
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ group :development do
9
9
  gem "shoulda", ">= 0"
10
10
  gem "rdoc", "~> 3.12"
11
11
  gem "bundler", "~> 1.0"
12
- gem "jeweler", "~> 2.0.1"
12
+ gem "jeweler", "~> 2.0"
13
13
  gem "simplecov", ">= 0"
14
14
  gem 'rspec', '~> 3.2.0'
15
15
  end
data/README.md CHANGED
@@ -38,9 +38,12 @@ notifications:
38
38
  secure: "fXmNnx6XW5OvT/j2jSSHYd3mHwbL+GzUSUSWmZVT0Vx/Ga5jXINTOYRY/9PYgJMqdL8a/L0Mf/18ZZ+tliPlWQ/DnfTz1a3Q/Pf94hfYSGhSGlQC/eXYcpOm/dNOKYQ3sr4tqXtTPylPUDXHeiM2D59ggdlUvVwcALGgHizajPQ="
39
39
  ```
40
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.
41
+ ## Things it does
42
42
 
43
- ## Things it doesnt do
43
+ * `travish run` will execute all of your commands and set up any ENV variables that are _not_ secure. This will run a full build of your test suite.
44
+ * `travish script` will execute _only the script parts_ of your yml and set up any ENV variables that are _not_ secure. This will run a partial set of your test suite.
45
+
46
+ ## Things it doesn't do
44
47
 
45
48
  * Support notifications.
46
49
  * Support secure env variables.
@@ -62,6 +65,6 @@ I'm open to PRs for any of these things.
62
65
 
63
66
  ### Copyright
64
67
 
65
- Copyright (c) 2015 Orta Therox & Artsy. See LICENSE.txt for
68
+ Copyright (c) 2015-2017 Orta Therox & Artsy. See LICENSE.txt for
66
69
  further details.
67
70
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 1.0.0
@@ -9,7 +9,8 @@ module Travish
9
9
  puts ""
10
10
  puts "Travish - emulates the OSX experience for travis."
11
11
  puts ""
12
- puts " run - Runs the .travis.yml."
12
+ puts " run - Runs the .travis.yml."
13
+ puts " script - Runs only the \"script\" portion of .travis.yml."
13
14
  puts ""
14
15
  puts " ./"
15
16
  end
@@ -25,6 +26,14 @@ module Travish
25
26
  run_commands(travis_file["script"], parser.environment_hash)
26
27
  end
27
28
 
29
+ def script
30
+ validate
31
+ travis_file = default_yml.merge local_travis_yml
32
+ parser = EnvironmentParser.new(travis_file.fetch('env', {}).fetch('global', {}), ENV)
33
+
34
+ run_commands(travis_file["script"], parser.environment_hash)
35
+ end
36
+
28
37
  # -- faffing
29
38
 
30
39
  def initialize(args)
@@ -6,7 +6,7 @@
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "travish"
9
- s.version = "0.1.1"
9
+ s.version = "1.0.0"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox