Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Putting together a set of features suitable for Travis.

  • Loading branch information...
commit 6f400e2e6728ea527824732932b2bcfb8c3cbc64 1 parent 24777e2
@gga gga authored
View
2  .travis.yml
@@ -3,7 +3,7 @@ rvm: 1.9.3
before_script:
- rm -rf test/
script:
- - bundle exec rake test
+ - bundle exec rake test:rspec test:features:travis
after_script:
- bin/calatrava create test --dev --no-android --no-ios
- rvm rvmrc trust test/
View
4 Rakefile
@@ -16,6 +16,10 @@ namespace :test do
Cucumber::Rake::Task.new(:wip) do |t|
t.cucumber_opts = "features --format pretty --tags @wip --wip"
end
+
+ Cucumber::Rake::Task.new(:travis) do |t|
+ t.cucumber_opts = "features --format pretty --tags @travis"
+ end
end
end
View
6 features/project.feature
@@ -29,6 +29,7 @@ Feature: Projects
| android | droid |
| web | web |
+ @travis
Scenario: Templates can have deeply nested directories and files
Given the following directories exist:
| nested |
@@ -38,7 +39,7 @@ Feature: Projects
| nested/sample |
| nested/.config |
| nested/dir/sub/sample2 |
- When I run `calatrava create proj --template nested`
+ When I run `calatrava create proj --template nested --no-android`
Then the following directories should exist:
| proj |
| proj/dir |
@@ -48,12 +49,13 @@ Feature: Projects
| proj/.config |
| proj/dir/sub/sample2 |
+ @travis
Scenario: Template files can themselves be templates
Given a directory named "template"
And a file named "template/.tmpl.calatrava" with:
"""
Sample {{ project_name }}
"""
- When I run `calatrava create templatized --template template`
+ When I run `calatrava create templatized --template template --no-android`
Then a file named "templatized/.tmpl" should exist
And the file "templatized/.tmpl" should contain "Sample templatized"
View
3  features/sample_app.feature
@@ -4,6 +4,7 @@ Feature: Sample App
As a new calatrava user
I want a new Calatrava project to contain a working sample app
+ @travis
Scenario: Create a sample project
When I create an app named "sample"
And I cd to "sample"
@@ -11,6 +12,7 @@ Feature: Sample App
And I run `rake bootstrap`
Then the exit status should be 0
+ @travis
Scenario: Sample app kernel
When I create an app named "sample"
And I cd to "sample"
@@ -19,6 +21,7 @@ Feature: Sample App
And I run `rake kernel:spec`
Then the exit status should be 0
+ @travis
Scenario: Mobile web sample app
When I create an app named "sample"
And I cd to "sample"
View
2  features/support/calatrava_app.rb
@@ -7,7 +7,7 @@ class CalatravaApp
def initialize(name)
@name = name
- run_simple("calatrava create #{@name}")
+ run_simple("calatrava create #{@name} --no-android --no-ios")
end
def start_apache
Please sign in to comment.
Something went wrong with that request. Please try again.