Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-static
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-static
Commits
ab503431
Commit
ab503431
authored
Sep 15, 2015
by
Terence Lee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17 from hone/circleci
CircleCI
parents
b9558c6f
50aaaac9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
+15
-7
circle.yml
circle.yml
+7
-0
simple_spec.rb
spec/simple_spec.rb
+2
-2
app_runner.rb
spec/support/app_runner.rb
+1
-1
buildpack_builder.rb
spec/support/buildpack_builder.rb
+5
-4
No files found.
circle.yml
0 → 100644
View file @
ab503431
machine
:
services
:
-
docker
ruby
:
version
:
ruby-2.2.3
environment
:
circleci
:
true
spec/simple_spec.rb
View file @
ab503431
...
...
@@ -6,8 +6,8 @@ require_relative "support/path_helper"
RSpec
.
describe
"Simple"
do
before
(
:all
)
do
@debug
=
fals
e
BuildpackBuilder
.
new
(
@debug
)
@debug
=
tru
e
BuildpackBuilder
.
new
(
@debug
,
ENV
[
'CIRCLECI'
]
)
end
after
do
...
...
spec/support/app_runner.rb
View file @
ab503431
...
...
@@ -71,7 +71,7 @@ class AppRunner
end
end
def
get
(
path
,
capture_io
=
false
,
max_retries
=
2
0
)
def
get
(
path
,
capture_io
=
false
,
max_retries
=
3
0
)
if
@run
get_retry
(
path
,
max_retries
)
else
...
...
spec/support/buildpack_builder.rb
View file @
ab503431
...
...
@@ -8,9 +8,10 @@ class BuildpackBuilder
TAG
=
"hone/static:cedar-14"
def
initialize
(
debug
=
false
)
@debug
=
debug
@image
=
build_image
def
initialize
(
debug
=
false
,
intermediates
=
false
)
@debug
=
debug
@intermediates
=
intermediates
@image
=
build_image
end
def
build_image
...
...
@@ -24,6 +25,6 @@ class BuildpackBuilder
->
(
chunk
)
{
nil
}
end
Docker
::
Image
.
build_from_dir
(
buildpack_path
.
to_s
,
't'
=>
TAG
,
'rm'
=>
true
,
'dockerfile'
=>
"spec/support/docker/Dockerfile"
,
&
print_output
)
Docker
::
Image
.
build_from_dir
(
buildpack_path
.
to_s
,
't'
=>
TAG
,
'rm'
=>
!
@intermediates
,
'dockerfile'
=>
"spec/support/docker/Dockerfile"
,
&
print_output
)
end
end
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