Skip to content

Commit

Permalink
Merge branch 'develop' into feature/1180-is-read-status
Browse files Browse the repository at this point in the history
  • Loading branch information
omarkasem committed Mar 8, 2023
2 parents 3dd5dc3 + d26e21b commit b2caaf5
Show file tree
Hide file tree
Showing 2,004 changed files with 310,951 additions and 347,142 deletions.
112 changes: 19 additions & 93 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ anchors:
default_job_config: &default_job_config
working_directory: /home/circleci/plugin
machine:
image: ubuntu-1604:202007-01
image: ubuntu-2004:202201-02

test_job_config: &test_job_config
<<: *context
Expand Down Expand Up @@ -47,6 +47,7 @@ jobs:
name: Installing build dependencies
command: |
/home/circleci/tooling/build-tools/build_tools.sh npm -o install
/home/circleci/tooling/build-tools/build_tools.sh composer -o install
- run:
name: Configuring tests environment
command: |
Expand All @@ -60,56 +61,6 @@ jobs:
paths:
- .

run_php_54_unit_tests:
<<: *default_job_config
steps:
- attach_workspace:
at: /home/circleci
- run:
name: Running PHP 5.4 unit tests
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_54
run_php_55_unit_tests:
<<: *default_job_config
steps:
- attach_workspace:
at: /home/circleci
- run:
name: Running PHP 5.5 unit tests
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_55
run_php_56_unit_tests:
<<: *default_job_config
steps:
- attach_workspace:
at: /home/circleci
- run:
name: Running PHP 5.6 unit tests
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_56
run_php_70_unit_tests:
<<: *default_job_config
steps:
- attach_workspace:
at: /home/circleci
- run:
name: Running PHP 7.0 unit tests
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_70
run_php_71_unit_tests:
<<: *default_job_config
steps:
- attach_workspace:
at: /home/circleci
- run:
name: Running PHP 7.1 unit tests
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_71
run_php_72_unit_tests:
<<: *default_job_config
steps:
Expand All @@ -120,25 +71,15 @@ jobs:
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_72
run_php_73_unit_tests:
run_php_80_unit_tests:
<<: *default_job_config
steps:
- attach_workspace:
at: /home/circleci
- run:
name: Running PHP 7.3 unit tests
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_73
run_php_74_unit_tests:
<<: *default_job_config
steps:
- attach_workspace:
at: /home/circleci
- run:
name: Running PHP 7.4 unit tests
name: Running PHP 7.2 unit tests
command: |
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_74
/home/circleci/tooling/docker-unit-tests/docker-unit-tests.sh test_80
build_package_release:
<<: *default_job_config
Expand All @@ -148,15 +89,18 @@ jobs:
- run:
name: Building and packaging
command: |
rm -rf vendor
/home/circleci/tooling/build-tools/build_tools.sh composer -o "install --no-dev"
/home/circleci/tooling/build-tools/build_tools.sh grunt
if [ "${CIRCLE_BRANCH}" != "main" ]; then
/home/circleci/tooling/build-tools/build_tools.sh grunt -o "exec:bower sass postcss uglify imagemin"
/home/circleci/tooling/build-tools/build_tools.sh package_build -o "gravityview gravityview.php --include-hash"
else
/home/circleci/tooling/build-tools/build_tools.sh grunt
[[ $(git diff languages/gravityview.pot | grep +msgid) ]] && /home/circleci/tooling/build-tools/build_tools.sh tx -o "push -s"
/home/circleci/tooling/build-tools/build_tools.sh tx -o "pull -f -a --parallel --no-interactive"
/home/circleci/tooling/build-tools/build_tools.sh package_build -o "gravityview gravityview.php $([[ $(git log -n 1 | grep "\[skip release\]") ]] && echo --include-hash)"
fi
mkdir -p gravityview
cp -R vendor* gravityview
rm gravityview/vendor_prefixed/gravitykit/foundation/src/translations.js.php
zip -gr $(ls gravityview-*.zip) gravityview
mkdir .release
cp gravityview-*.zip .release
- run:
Expand All @@ -183,34 +127,16 @@ workflows:
jobs:
- prepare_test_and_build_environment:
<<: *context
# - run_php_54_unit_tests:
# <<: *test_job_config
# - run_php_55_unit_tests:
# <<: *test_job_config
- run_php_56_unit_tests:
- run_php_72_unit_tests:
<<: *test_job_config
# - run_php_70_unit_tests:
# <<: *test_job_config
# - run_php_71_unit_tests:
# <<: *test_job_config
# - run_php_72_unit_tests:
# <<: *test_job_config
# - run_php_73_unit_tests:
# <<: *test_job_config
- run_php_74_unit_tests:
- run_php_80_unit_tests:
<<: *test_job_config
- run_acceptance_tests:
<<: *context
# - run_acceptance_tests:
# <<: *context
- build_package_release:
<<: *context
requires:
# - run_php_54_unit_tests
# - run_php_55_unit_tests
- run_php_56_unit_tests
# - run_php_70_unit_tests
# - run_php_71_unit_tests
# - run_php_72_unit_tests
# - run_php_73_unit_tests
- run_php_74_unit_tests
- run_acceptance_tests
- run_php_72_unit_tests
- run_php_80_unit_tests
# - run_acceptance_tests

8 changes: 6 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,21 @@
.gitmodules export-ignore
.scrutinizer.yml export-ignore
.travis.yml export-ignore
bower.json export-ignore
codeception.dist.yml export-ignore
composer.json export-ignore
composer.lock export-ignore
Gruntfile.js export-ignore
package.json export-ignore
package-lock.json export-ignore
phpcs.ruleset.xml export-ignore
phpcs.xml.dist export-ignore
phpunit.xml export-ignore
phpunit.xml.dist export-ignore
readme.md export-ignore
Rakefile export-ignore
bower.json export-ignore
readme.md export-ignore
strauss.phar export-ignore
translations.pot export-ignore

# Folders
/.circleci export-ignore
Expand Down
17 changes: 4 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,22 @@
*.sublime-project
*.sublime-workspace

### Composer ###
composer.lock

### Libraries ###
vendor/.git
vendor/*/.git
vendor/composer/
vendor/bin/
vendor/autoload.php
vendor/phpcompatibility/
vendor/squizlabs/
vendor/dealerdirect/
wpcs/

### Node ###
node_modules/*
package-lock.json

### CodeKit ####
.sass-cache
*.codekit

### Transifex ####
.tx
languages/gravityview-pt.mo
languages/gravityview-pt.po
languages/gravityview-de.mo
languages/gravityview-de.po

### PhpStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm

Expand Down Expand Up @@ -83,6 +70,7 @@ assets/lib/fancybox/*
# Unit tests
/tmp
/tests/bin/tmp
phpstan.neon

# mpeltonen/sbt-idea plugin
.idea_modules/
Expand All @@ -107,3 +95,6 @@ phpunit/
wordpress-51-tests-lib/
wordpress-latest-tests-lib/

vendor/katzgrau/klogger/
vendor/trustedlogin/trustedlogin-client/
vendor/trustedlogin/client/
1 change: 0 additions & 1 deletion .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ lang_map = it: it_IT, bn: bn_BD, sv: sv_SE
source_file = languages/gravityview.pot
source_lang = en
type = PO

Loading

0 comments on commit b2caaf5

Please sign in to comment.