Skip to content

Commit 73ca0b7

Browse files
authored
Prepare 1.2 release (#29)
* Update composer.json * Update Jenkinsfile * Update .travis.yml
1 parent 2beb5e3 commit 73ca0b7

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ sudo: false
33

44
php:
55
- 5.6
6-
- 7.0
76
- 7.1
87

98
matrix:
@@ -15,9 +14,7 @@ cache:
1514
- $HOME/.composer/cache/files
1615

1716
before_install:
18-
- if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then
19-
phpenv config-rm xdebug.ini;
20-
fi;
17+
- phpenv config-rm xdebug.ini || echo "xdebug not available for PHP $TRAVIS_PHP_VERSION"
2118
- echo "memory_limit=3G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
2219
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
2320

Jenkinsfile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ def mysqlVersion = "5.5"
55
def launchUnitTests = "yes"
66
def launchIntegrationTests = "yes"
77
def launchBehatTests = "yes"
8-
def commit = "${env.GIT_COMMIT}"
8+
9+
class Globals {
10+
static pimVersion = "1.7"
11+
static extensionBranch = "dev-master"
12+
}
913

1014
stage("Checkout") {
1115
milestone 1
@@ -26,13 +30,13 @@ stage("Checkout") {
2630
stash "excel_init"
2731

2832
checkout([$class: 'GitSCM',
29-
branches: [[name: '1.7']],
33+
branches: [[name: "${Globals.pimVersion}"]],
3034
userRemoteConfigs: [[credentialsId: 'github-credentials', url: 'https://github.com/akeneo/pim-community-standard.git']]
3135
])
3236
stash "pim_community"
3337

3438
checkout([$class: 'GitSCM',
35-
branches: [[name: '1.7']],
39+
branches: [[name: "${Globals.pimVersion}"]],
3640
userRemoteConfigs: [[credentialsId: 'github-credentials', url: 'https://github.com/akeneo/pim-enterprise-standard.git']]
3741
])
3842
stash "pim_enterprise"
@@ -44,11 +48,9 @@ if (launchUnitTests.equals("yes")) {
4448
def tasks = [:]
4549

4650
tasks["phpspec-5.6"] = {runPhpSpecTest("5.6")}
47-
tasks["phpspec-7.0"] = {runPhpSpecTest("7.0")}
4851
tasks["phpspec-7.1"] = {runPhpSpecTest("7.1")}
4952

5053
tasks["php-cs-fixer-5.6"] = {runPhpCsFixerTest("5.6")}
51-
tasks["php-cs-fixer-7.0"] = {runPhpCsFixerTest("7.0")}
5254
tasks["php-cs-fixer-7.1"] = {runPhpCsFixerTest("7.1")}
5355

5456
parallel tasks
@@ -60,10 +62,10 @@ if (launchIntegrationTests.equals("yes")) {
6062
def tasks = [:]
6163

6264
tasks["phpunit-5.6-ce"] = {runIntegrationTest("5.6")}
63-
tasks["phpunit-7.0-ce"] = {runIntegrationTest("7.0")}
65+
tasks["phpunit-7.1-ce"] = {runIntegrationTest("7.1")}
6466

6567
tasks["phpunit-5.6-ee"] = {runIntegrationTestEE("5.6")}
66-
tasks["phpunit-7.0-ee"] = {runIntegrationTestEE("7.0")}
68+
tasks["phpunit-7.1-ee"] = {runIntegrationTestEE("7.1")}
6769

6870
parallel tasks
6971
}
@@ -118,10 +120,11 @@ def runIntegrationTest(version) {
118120
sh "composer require --no-update alcaeus/mongo-php-adapter"
119121
}
120122

121-
sh "composer require --no-update phpunit/phpunit akeneo/excel-init-bundle"
123+
sh "composer require --no-update phpunit/phpunit akeneo/excel-init-bundle:${Globals.extensionBranch}"
122124
sh "composer update --ignore-platform-reqs --optimize-autoloader --no-interaction --no-progress --prefer-dist"
123125

124126
dir("vendor/akeneo/excel-init-bundle") {
127+
deleteDir()
125128
unstash "excel_init"
126129
}
127130
sh "composer dump-autoload -o"
@@ -149,7 +152,7 @@ def runIntegrationTestEE(version) {
149152
sh "composer require --no-update alcaeus/mongo-php-adapter"
150153
}
151154

152-
sh "composer require --no-update phpunit/phpunit akeneo/excel-init-bundle"
155+
sh "composer require --no-update phpunit/phpunit akeneo/excel-init-bundle:${Globals.extensionBranch}"
153156
sh "composer update --ignore-platform-reqs --optimize-autoloader --no-interaction --no-progress --prefer-dist"
154157

155158
dir("vendor/akeneo/excel-init-bundle") {

composer.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,17 @@
1919
}
2020
],
2121
"require": {
22-
"akeneo/pim-community-dev": "1.7.*@beta"
22+
"akeneo/pim-community-dev": "1.7.*"
2323
},
2424
"require-dev": {
2525
"phpspec/phpspec": "@stable",
26-
"friendsofphp/php-cs-fixer": "@stable",
27-
"squizlabs/php_codesniffer": "2.3.*",
28-
"phpmd/phpmd": "2.3.*",
29-
"henrikbjorn/phpspec-code-coverage": "3.0.1"
26+
"friendsofphp/php-cs-fixer": "@stable"
3027
},
3128
"config": {
3229
"bin-dir": "bin"
3330
},
3431
"autoload": {
3532
"psr-4": { "Pim\\Bundle\\ExcelInitBundle\\": "src/" }
3633
},
37-
"minimum-stability": "stable",
38-
"extra": {
39-
"branch-alias": {
40-
"dev-master": "1.0.x-dev"
41-
}
42-
}
34+
"minimum-stability": "stable"
4335
}

0 commit comments

Comments
 (0)