Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Milan
diaspora
Commits
18b1f360
Commit
18b1f360
authored
Sep 17, 2011
by
Sarah Mei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have our CI run only cucumber
parent
661d5d3b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
22 deletions
+26
-22
ci-19.sh
ci-19.sh
+5
-4
ci.sh
ci.sh
+5
-4
lib/tasks/ci.rake
lib/tasks/ci.rake
+16
-14
No files found.
ci-19.sh
View file @
18b1f360
#!/bin/bash
echo
"*************************************************************************************************"
&&
echo
"* ruby 1.9.2-p0 build *"
&&
echo
"*************************************************************************************************"
&&
echo
"*********************************************************************************"
&&
echo
"* ruby 1.9.2-p0 build *"
&&
echo
"* Runs tests we can't run on travis because their VMs are a bit puny. *"
&&
echo
"*********************************************************************************"
&&
echo
""
&&
rm
-f
Gemfile.lock
&&
source
/usr/local/rvm/scripts/rvm
&&
rvm use ruby-1.9.2-p0@diaspora
--create
&&
bundle
install
&&
CI
=
true
bundle
exec
rake c
ruise
CI
=
true
bundle
exec
rake c
i:hard_things
ci.sh
View file @
18b1f360
#!/bin/bash
echo
"*************************************************************************************************"
&&
echo
"* ruby 1.8.7 REE build *"
&&
echo
"*************************************************************************************************"
&&
echo
"*********************************************************************************"
&&
echo
"* ruby 1.8.7 REE build *"
&&
echo
"* Runs tests we can't run on travis because their VMs are a bit puny. *"
&&
echo
"*********************************************************************************"
&&
echo
""
&&
rm
-f
Gemfile.lock
&&
source
/usr/local/rvm/scripts/rvm
&&
...
...
@@ -16,4 +17,4 @@ rm -rf /usr/local/rvm/gems/ree-1.8.7-2010.02@diaspora/cache &&
rm
-rf
/usr/local/rvm/gems/ree-1.8.7-2010.02@global/cache
&&
rm
-rf
/usr/local/rvm/gems/ree-1.8.7-2010.02/cache
&&
bundle
install
&&
CI
=
true
bundle
exec
rake c
ruise
CI
=
true
bundle
exec
rake c
i:hard_things
lib/tasks/c
ruise
.rake
→
lib/tasks/c
i
.rake
View file @
18b1f360
namespace
:cruise
do
desc
"Run all specs and features"
task
:cruise
=>
[
:environment
,
:'cruise:migrate'
]
do
namespace
:ci
do
desc
"Run tests in the cloud. ZOMG!"
task
:travis
do
[
"rspec spec"
,
"rake jasmine:ci"
,
"rake cucumber"
].
each
do
|
cmd
|
puts
"Starting to run
#{
cmd
}
..."
system
(
"export DISPLAY=:99.0 && bundle exec
#{
cmd
}
"
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
==
0
end
end
desc
"Run tests that can't run on travis"
task
:hard_things
=>
[
:environment
,
:'ci:migrate'
]
do
puts
"Starting virtual display..."
`sh -e /etc/init.d/xvfb start`
puts
"Starting specs..."
system
(
'export DISPLAY=:99.0 && CI=true bundle exec rake'
)
system
(
'export DISPLAY=:99.0 && CI=true bundle exec rake
cucumber
'
)
exit_status
=
$?
.
exitstatus
puts
"Stopping virtual display..."
`sh -e /etc/init.d/xvfb stop`
...
...
@@ -19,14 +29,6 @@ namespace :cruise do
system
(
'bundle exec rake db:test:prepare'
)
raise
"migration failed!"
unless
$?
.
exitstatus
==
0
end
task
:travis
do
[
"rspec spec"
,
"rake jasmine:ci"
,
"rake cucumber"
].
each
do
|
cmd
|
puts
"Starting to run
#{
cmd
}
..."
system
(
"export DISPLAY=:99.0 && bundle exec
#{
cmd
}
"
)
raise
"
#{
cmd
}
failed!"
unless
$?
.
exitstatus
==
0
end
end
end
task
:cruise
=>
"cruise:cruise"
task
:travis
=>
"c
ruise
:travis"
task
:travis
=>
"c
i
:travis"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment