Skip to content

Commit

Permalink
fix: test semantic-release process
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Feb 26, 2020
1 parent b72957d commit d0cd60e
Show file tree
Hide file tree
Showing 5 changed files with 5,632 additions and 42 deletions.
103 changes: 61 additions & 42 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---
version: 2
version: 2.1

orbs:
node: circleci/[email protected]

composer_with_lowest_dependencies: &composer_with_lowest_dependencies
run: |
Expand All @@ -26,79 +29,79 @@ tests_with_future_mode: &tests_with_future_mode
composer run php-cs-fixer || (echo "Coding standards are not respected. Run 'composer run php-cs-fixer'" && exit 1)
jobs:
php 7.2:
php-7-2:
docker:
- image: circleci/php:7.2
steps:
- checkout
- <<: *composer
- <<: *tests

php 7.2 with future mode:
php-7-2-with-future-mode:
docker:
- image: circleci/php:7.2
steps:
- checkout
- <<: *composer
- <<: *tests_with_future_mode

php 7.2 with lowest dependencies:
php-7-2-with-lowest-dependencies:
docker:
- image: circleci/php:7.2
steps:
- checkout
- <<: *composer_with_lowest_dependencies
- <<: *tests

php 7.3:
php-7-3:
docker:
- image: circleci/php:7.3
steps:
- checkout
- <<: *composer
- <<: *tests

php 7.3 with future mode:
php-7-3-with-future-mode:
docker:
- image: circleci/php:7.3
steps:
- checkout
- <<: *composer
- <<: *tests_with_future_mode

php 7.3 with lowest dependencies:
php-7-3-with-lowest-dependencies:
docker:
- image: circleci/php:7.3
steps:
- checkout
- <<: *composer_with_lowest_dependencies
- <<: *tests

php 7.4:
php-7-4:
docker:
- image: circleci/php:7.4
steps:
- checkout
- <<: *composer
- <<: *tests

php 7.4 with future mode:
php-7-4-with-future-mode:
docker:
- image: circleci/php:7.4
steps:
- checkout
- <<: *composer
- <<: *tests_with_future_mode

php 7.4 with lowest dependencies:
php-7-4-with-lowest-dependencies:
docker:
- image: circleci/php:7.4
steps:
- checkout
- <<: *composer_with_lowest_dependencies
- <<: *tests

documentation is up to date:
documentation:
docker:
- image: circleci/php:7.4
steps:
Expand All @@ -107,52 +110,68 @@ jobs:
- run: bin/doc > README.new.md
- run: cmp --silent README.md README.new.md || cmp README.md README.new.md || (echo "Documentation is outdated. Run 'bin/doc > README.md'" && exit 1)

release-test:
executor:
name: node/default
steps:
- node/install
- checkout
- node/with-cache:
steps:
- run: npm install
- run: node_modules/.bin/semantic-release --dry-run

release:
docker:
- image: circleci/node:8
executor:
name: node/default
steps:
- type: checkout
- run: sudo npm install -g semantic-release
- run: semantic-release
- node/install
- checkout
- node/with-cache:
steps:
- run: npm install
- run: node_modules/.bin/semantic-release

workflows:
version: 2
PR:
jobs:
- documentation is up to date
- php 7.2
- php 7.2 with future mode:
- documentation
- php-7-2
- php-7-2-with-future-mode:
requires:
- php 7.2
- php 7.2 with lowest dependencies:
- php-7-2
- php-7-2-with-lowest-dependencies:
requires:
- php 7.2
- php 7.3
- php 7.3 with future mode:
- php-7-2
- php-7-3
- php-7-3-with-future-mode:
requires:
- php 7.3
- php 7.3 with lowest dependencies:
- php-7-3
- php-7-3-with-lowest-dependencies:
requires:
- php 7.3
- php 7.4
- php 7.4 with future mode:
- php-7-3
- php-7-4
- php-7-4-with-future-mode:
requires:
- php 7.4
- php 7.4 with lowest dependencies:
- php-7-4
- php-7-4-with-lowest-dependencies:
requires:
- php 7.4
- php-7-4
- release-test
- release:
requires:
- documentation is up to date
- php 7.2
- php 7.2 with future mode
- php 7.2 with lowest dependencies
- php 7.3
- php 7.3 with future mode
- php 7.3 with lowest dependencies
- php 7.4
- php 7.4 with future mode
- php 7.4 with lowest dependencies
- release-test
- documentation
- php-7-2
- php-7-2-with-future-mode
- php-7-2-with-lowest-dependencies
- php-7-3
- php-7-3-with-future-mode
- php-7-3-with-lowest-dependencies
- php-7-4
- php-7-4-with-future-mode
- php-7-4-with-lowest-dependencies
filters:
branches:
only:
Expand Down
8 changes: 8 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ update_configs:
include_scope: true
default_reviewers:
- 'PedroTroller'
- package_manager: "javascript"
directory: "./"
update_schedule: "live"
commit_message:
prefix: "fix"
include_scope: true
default_reviewers:
- 'PedroTroller'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.php_cs.cache
composer.lock
node_modules
vendor
Loading

0 comments on commit d0cd60e

Please sign in to comment.