teapot 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +4 -2
- data/.travis.yml +9 -8
- data/README.md +14 -12
- data/Rakefile +14 -3
- data/lib/teapot/target.rb +0 -2
- data/lib/teapot/version.rb +1 -1
- data/spec/spec_helper.rb +29 -0
- metadata +4 -3
- data/.simplecov +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2941cf53da430cdf791523506bc5d24df115506
|
4
|
+
data.tar.gz: cc7092f377444bbc67dd3232137626418f58971f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3c0fabbb37b1d116467422a3309370a30e04c429dd8ca2c3b297096ae58b4143a5842c59290cd7a214bad74e244225239db32167b3788ebe9c4c588aba7dcf2
|
7
|
+
data.tar.gz: 0a967401cf2bc91f38c71b2a3bb1c622f155bbe91f1e18b4a43373af8c5e5f3537ba6da6f00226dfc7f1ddfdb3ef95401eb0f02f997ea0ec7e71ba56ba5522aa
|
data/.rspec
CHANGED
data/.travis.yml
CHANGED
@@ -1,18 +1,19 @@
|
|
1
1
|
language: ruby
|
2
2
|
sudo: false
|
3
|
+
dist: trusty
|
4
|
+
cache: bundler
|
3
5
|
before_install:
|
4
6
|
# For testing purposes:
|
5
|
-
- git config --global user.name "Samuel Williams"
|
6
7
|
- git config --global user.email "samuel@oriontransfer.net"
|
8
|
+
- git config --global user.name "Samuel Williams"
|
7
9
|
rvm:
|
8
|
-
- 2.1
|
9
|
-
- 2.2
|
10
|
-
- 2.3
|
10
|
+
- 2.1
|
11
|
+
- 2.2
|
12
|
+
- 2.3
|
13
|
+
- 2.4
|
14
|
+
- jruby-head
|
11
15
|
- ruby-head
|
12
|
-
- rbx-2
|
13
|
-
env: COVERAGE=true
|
14
16
|
matrix:
|
15
|
-
fast_finish: true
|
16
17
|
allow_failures:
|
17
18
|
- rvm: ruby-head
|
18
|
-
- rvm:
|
19
|
+
- rvm: jruby-head
|
data/README.md
CHANGED
@@ -149,19 +149,21 @@ To only see things exported by your current project, you can run:
|
|
149
149
|
|
150
150
|
The new project doesn't define any targets so we can do that now. Add the following to `teapot.rb`:
|
151
151
|
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
target.depends :platform
|
160
|
-
target.depends "Language/C++11"
|
161
|
-
target.depends "Library/UnitTest"
|
162
|
-
|
163
|
-
target.provides "Test/MyProject"
|
152
|
+
```ruby
|
153
|
+
# Build Targets
|
154
|
+
|
155
|
+
define_target "my-project-tests" do |target|
|
156
|
+
target.build do
|
157
|
+
run tests: 'UnitTest', source_files: target.package.path.glob("test/MyProject/**/*.cpp")
|
164
158
|
end
|
159
|
+
|
160
|
+
target.depends :platform
|
161
|
+
target.depends "Language/C++11"
|
162
|
+
target.depends "Library/UnitTest"
|
163
|
+
|
164
|
+
target.provides "Test/MyProject"
|
165
|
+
end
|
166
|
+
```
|
165
167
|
|
166
168
|
We can now build and run unit tests (althoght there aren't any yet):
|
167
169
|
|
data/Rakefile
CHANGED
@@ -1,8 +1,19 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rspec/core/rake_task"
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
# Load all rake tasks:
|
5
|
+
import(*Dir.glob('tasks/**/*.rake'))
|
6
|
+
|
7
|
+
RSpec::Core::RakeTask.new(:test)
|
8
|
+
|
9
|
+
task :environment do
|
10
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
11
|
+
end
|
12
|
+
|
13
|
+
task :console => :environment do
|
14
|
+
require 'pry'
|
15
|
+
|
16
|
+
Pry.start
|
6
17
|
end
|
7
18
|
|
8
|
-
task :default => :
|
19
|
+
task :default => :test
|
data/lib/teapot/target.rb
CHANGED
data/lib/teapot/version.rb
CHANGED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
|
2
|
+
if ENV['COVERAGE'] || ENV['TRAVIS']
|
3
|
+
begin
|
4
|
+
require 'simplecov'
|
5
|
+
|
6
|
+
SimpleCov.start do
|
7
|
+
add_filter "/spec/"
|
8
|
+
end
|
9
|
+
|
10
|
+
if ENV['TRAVIS']
|
11
|
+
require 'coveralls'
|
12
|
+
Coveralls.wear!
|
13
|
+
end
|
14
|
+
rescue LoadError
|
15
|
+
warn "Could not load simplecov: #{$!}"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
require "bundler/setup"
|
20
|
+
require "teapot"
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
# Enable flags like --only-failures and --next-failure
|
24
|
+
config.example_status_persistence_file_path = ".rspec_status"
|
25
|
+
|
26
|
+
config.expect_with :rspec do |c|
|
27
|
+
c.syntax = :expect
|
28
|
+
end
|
29
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teapot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|
@@ -177,7 +177,6 @@ extra_rdoc_files: []
|
|
177
177
|
files:
|
178
178
|
- ".gitignore"
|
179
179
|
- ".rspec"
|
180
|
-
- ".simplecov"
|
181
180
|
- ".travis.yml"
|
182
181
|
- Gemfile
|
183
182
|
- Gemfile.local
|
@@ -214,6 +213,7 @@ files:
|
|
214
213
|
- materials/kurocha.svg
|
215
214
|
- materials/teapot.png
|
216
215
|
- materials/teapot.svg
|
216
|
+
- spec/spec_helper.rb
|
217
217
|
- spec/teapot/command_spec.rb
|
218
218
|
- spec/teapot/context_spec.rb
|
219
219
|
- spec/teapot/context_spec/teapot.rb
|
@@ -254,6 +254,7 @@ signing_key:
|
|
254
254
|
specification_version: 4
|
255
255
|
summary: Teapot is a tool for managing complex cross-platform builds.
|
256
256
|
test_files:
|
257
|
+
- spec/spec_helper.rb
|
257
258
|
- spec/teapot/command_spec.rb
|
258
259
|
- spec/teapot/context_spec.rb
|
259
260
|
- spec/teapot/context_spec/teapot.rb
|