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 +4 -4
- data/Gemfile +1 -1
- data/README.md +6 -3
- data/VERSION +1 -1
- data/lib/travish.rb +10 -1
- data/travish.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 620b1024f521833916fff715daf8540ef52e058f
|
4
|
+
data.tar.gz: 61345dca75c8406efff9c87a1ca123045997c2e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e620e6e8dc2e8dc0a35ad294f5699cf81f11e410b2c3dea60a769a231413b892dd69426680284c5caafebf66285849b16b69406e3f171a503d378d252010e027
|
7
|
+
data.tar.gz: 56076efaec173a0ee039cb0a1c63984212bcc170569319450e86483d40938258091905f6a49a3e997636c49ffb18d8a39971a50ceabc84d8299687c13804498e
|
data/Gemfile
CHANGED
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
|
-
|
41
|
+
## Things it does
|
42
42
|
|
43
|
-
|
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.0.0
|
data/lib/travish.rb
CHANGED
@@ -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
|
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)
|
data/travish.gemspec
CHANGED