Skip to content
Permalink
Browse files

fix(release process): switch to shared semantic-release configuration

  • Loading branch information
papakai committed Sep 17, 2019
1 parent 13a0276 commit 5a62f34bc5dae0ed090e0d7e8c5fab80b3302e11
Showing with 29 additions and 171 deletions.
  1. +4 −0 .releaserc.json
  2. +17 −10 .travis.yml
  3. +2 −3 composer.json
  4. +6 −65 package.json
  5. +0 −12 phpunit.xml
  6. +0 −33 tests/_bootstrap.php
  7. +0 −48 tests/ispapiBackorderModuleTest.php
@@ -0,0 +1,4 @@
{
"extends": "@hexonet/semantic-release-github-whmcs-config",
"branch": "master"
}
@@ -3,30 +3,37 @@ dist: xenial
notifications:
email:
recipients:
- kschwarz@hexonet.net
- tseelamkurthi@hexonet.net
- middleware@hexonet.net
on_success: never
on_failure: always
php:
- 5.6
- 7.2
- 7.3
# Trigger a push build on master and dependabot branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
- /^dependabot.*$/
php:
- 5.6
- 7.2
- 7.3
before_install:
- export PATH="$HOME/.config/composer/vendor/bin:$PATH"
- travis_retry wget https://github.com/jgm/pandoc/releases/download/2.6/pandoc-2.6-1-amd64.deb
- sudo dpkg -i pandoc-2.6-1-amd64.deb
- export TRAVIS_NODE_VERSION="lts/*"
addonns:
apt:
update: true
install:
- travis_retry wget https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-1-amd64.deb
- sudo dpkg -i pandoc-2.7.3-1-amd64.deb
- composer install
- travis_retry composer global require squizlabs/php_codesniffer
- rm -rf ~/.nvm
- git clone https://github.com/creationix/nvm.git ~/.nvm
- (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
- source ~/.nvm/nvm.sh
- nvm install $TRAVIS_NODE_VERSION
script:
- composer run-script test
- composer run-script codeCheck
- npm run codeCheck
jobs:
include:
- stage: release
@@ -45,8 +45,7 @@
"algo26-matthias/idna-convert": "^1.1 || ^2.1 || 3.0 || ^3.0"
},
"scripts": {
"codeCheck": "phpcs --ignore=\"*/vendor/*\" --standard=PSR2 -q -n --colors *.php api backend controller crons lang tests",
"codeFix": "phpcbf --ignore=\"*/vendor/*\" --standard=PSR2 -q *.php api backend controller crons lang tests",
"test": "phpunit"
"codeCheck": "phpcs --ignore=\"*/vendor/*\" --standard=PSR2 -q -n --colors *.php api backend controller crons lang",
"codeFix": "phpcbf --ignore=\"*/vendor/*\" --standard=PSR2 -q *.php api backend controller crons lang"
}
}
@@ -43,70 +43,11 @@
"application"
],
"devDependencies": {
"@semantic-release/changelog": "^3.0.4",
"@semantic-release/commit-analyzer": "^6.2.0",
"@semantic-release/exec": "^3.3.6",
"@semantic-release/git": "^7.0.16",
"@semantic-release/github": "^5.4.3",
"conventional-changelog": "^3.1.10",
"semantic-release": "^15.13.24",
"semantic-release-whmcs": "^1.0.4"
"semantic-release": "^15.13.18",
"@hexonet/semantic-release-github-whmcs-config": "^1.0.0"
},
"release": {
"debug": false,
"analyzeCommits": {
"preset": "angular"
},
"generateNotes": {
"preset": "angular"
},
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/git",
"@semantic-release/github",
"semantic-release-whmcs"
],
"prepare": [
{
"path": "@semantic-release/changelog",
"changelogFile": "HISTORY.md"
},
{
"path": "@semantic-release/exec",
"cmd": "./updateVersion.sh ${nextRelease.version} ${options.branch}"
},
{
"path": "@semantic-release/exec",
"cmd": "make allarchives"
},
{
"path": "@semantic-release/git",
"assets": [
"HISTORY.md",
"package.json",
"composer.json",
"ispapibackorder.php",
"whmcs-ispapi-backorder-latest.zip",
"release.json"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"publish": [
{
"path": "@semantic-release/github",
"assets": [
{
"label": "WHMCS Module (zip)",
"path": "pkg/whmcs-ispapi-backorder.zip"
},
{
"label": "WHMCS Module (tar.gz)",
"path": "pkg/whmcs-ispapi-backorder.tar.gz"
}
]
},
"semantic-release-whmcs"
]
"scripts": {
"codeFix": "phpcbf --ignore=\"*/vendor/*\" --standard=PSR2 -q *.php api backend controller crons lang",
"codeCheck": "phpcs --ignore=\"*/vendor/*\" --standard=PSR2 -q -n --colors *.php api backend controller crons lang"
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 5a62f34

Please sign in to comment.
You can’t perform that action at this time.