Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #440
- Loading branch information
Showing
9 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-min-* | ||
|
||
source $(dirname $0)/composer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"php": "7.3.*" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"php": "7.3.*" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"php": "7.3.*" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
require_relative "spec_helper" | ||
|
||
describe "A PHP application" do | ||
context "with a composer.lock generatead by an old version of Composer" do | ||
it "builds using Composer 1.x" do | ||
new_app_with_stack_and_platrepo('test/fixtures/composer/basic_lock_oldv1').deploy do |app| | ||
expect(app.output).to match(/- composer \(1/) | ||
expect(app.output).to match(/Composer version 1/) | ||
end | ||
end | ||
end | ||
context "with a composer.lock generatead by a late version 1 of Composer" do | ||
it "builds using Composer 1.x" do | ||
new_app_with_stack_and_platrepo('test/fixtures/composer/basic_lock_v1').deploy do |app| | ||
expect(app.output).to match(/- composer \(1/) | ||
expect(app.output).to match(/Composer version 1/) | ||
end | ||
end | ||
end | ||
context "with a composer.lock generatead by version 2 of Composer" do | ||
it "builds using Composer 2.x" do | ||
new_app_with_stack_and_platrepo('test/fixtures/composer/basic_lock_v2').deploy do |app| | ||
expect(app.output).to match(/- composer \(2/) | ||
expect(app.output).to match(/Composer version 2/) | ||
end | ||
end | ||
end | ||
end |