Skip to content

Commit 2626689

Browse files
authored
Merge pull request #525 from Scalingo/tests
fix(test): update Composer fixtures
2 parents b0f2c8a + 7d818c2 commit 2626689

File tree

9 files changed

+29
-24
lines changed

9 files changed

+29
-24
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
STACK := "scalingo-20"
1+
STACK := "scalingo-22"
22
BASH_COMMAND := /bin/bash
33

44
.DEFAULT := all
55

66
all: test
77
test: test20 test22
88

9-
test22: STACK := "scalingo-22"
9+
test20: STACK := "scalingo-20"
1010

1111
test20 test22: BASH_COMMAND := test/run
1212
test20 test22: IMAGE := "scalingo/$(STACK):latest"

test/composer

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ test::composer::classic() {
66
# Specifying the Composer version only via environment.
77
#
88

9-
COMPOSER_VERSION="2.7.0"
9+
COMPOSER_VERSION="${latest_composer["${STACK}"]}"
1010
export COMPOSER_VERSION
1111

1212
test::utils::setupFixture "defaults/composer"
1313
test::utils::compile
1414
test::helpers::enter_prod
1515

16-
test::helpers::composer "2.7.0"
16+
test::helpers::composer "${latest_composer["${STACK}"]}"
1717
}
1818

1919
test::composer::composer() {
@@ -22,11 +22,11 @@ test::composer::composer() {
2222
# Specifying the Composer version only via composer.json.
2323
#
2424

25-
test::utils::setupFixture "composer-2.7.0/composer"
25+
test::utils::setupFixture "composer-latest/composer"
2626
test::utils::compile
2727
test::helpers::enter_prod
2828

29-
test::helpers::composer "2.7.0"
29+
test::helpers::composer "${latest_composer["${STACK}"]}"
3030
}
3131

3232
test::composer::composer_over_lower_classic() {
@@ -37,14 +37,14 @@ test::composer::composer_over_lower_classic() {
3737
# specified in COMPOSER_VERSION.
3838
#
3939

40-
COMPOSER_VERSION="2.6.0"
40+
COMPOSER_VERSION="2.7.0"
4141
export COMPOSER_VERSION
4242

43-
test::utils::setupFixture "composer-2.7.0/composer"
43+
test::utils::setupFixture "composer-latest/composer"
4444
test::utils::compile
4545
test::helpers::enter_prod
4646

47-
test::helpers::composer "2.7.0"
47+
test::helpers::composer "${latest_composer["${STACK}"]}"
4848
}
4949

5050
test::composer::composer_over_higher_classic() {
@@ -55,12 +55,12 @@ test::composer::composer_over_higher_classic() {
5555
# specified in COMPOSER_VERSION.
5656
#
5757

58-
COMPOSER_VERSION="2.7.0"
58+
COMPOSER_VERSION="2.8.11"
5959
export COMPOSER_VERSION
6060

61-
test::utils::setupFixture "composer-2.6.0/composer"
61+
test::utils::setupFixture "composer-2.2.25/composer"
6262
test::utils::compile
6363
test::helpers::enter_prod
6464

65-
test::helpers::composer "2.6.0"
65+
test::helpers::composer "2.2.25"
6666
}

test/defaults

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
declare -gA default_php
44
declare -gA default_nginx
55
declare -gA default_composer
6+
declare -gA latest_composer
67

78
# Defaults for scalingo-20:
89
default_php["scalingo-20"]="8.1."
910
default_nginx["scalingo-20"]="1.26."
1011
default_composer["scalingo-20"]="2.8."
12+
latest_composer["scalingo-20"]="2.8.8"
1113

1214
# Defaults for scalingo-22:
1315
default_php["scalingo-22"]="8.1."
1416
default_nginx["scalingo-22"]="1.28."
1517
default_composer["scalingo-22"]="2.8."
18+
latest_composer["scalingo-22"]="2.8.11"
1619

1720

1821
test::defaults::classic() {

test/fixtures/composer-2.6.0/composer/composer.json renamed to test/fixtures/composer-2.2.25/composer/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extra": {
33
"paas": {
44
"engines": {
5-
"composer": "2.6.0"
5+
"composer": "2.2.25"
66
}
77
}
88
}

test/fixtures/composer-2.6.0/composer/composer.lock renamed to test/fixtures/composer-2.2.25/composer/composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/composer-2.7.0/composer/composer.json renamed to test/fixtures/composer-2.8.11/composer/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"extra": {
33
"paas": {
44
"engines": {
5-
"composer": "2.7.0"
5+
"composer": "2.8.11"
66
}
77
}
88
}

test/fixtures/composer-2.7.0/composer/composer.lock renamed to test/fixtures/composer-2.8.11/composer/composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/composer-latest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
composer-2.8.11

test/php84

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,4 @@ test::php84::extensions::optional_builtin() {
7474

7575
test::helpers::enabled_extensions "${optional_builtin_extensions_84[@]}"
7676
}
77+

0 commit comments

Comments
 (0)