Skip to content

Commit

Permalink
Adding first phpunit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Apr 30, 2023
1 parent 225f27b commit 5ce0de6
Show file tree
Hide file tree
Showing 5 changed files with 1,518 additions and 70 deletions.
27 changes: 26 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,38 @@ steps:
- ./vendor/bin/phpcs --extensions=php -p --standard=ruleset.xml .
- echo $(date)

- name: clone-test-data
image: alpine/git
commands:
- mkdir test-weblinks
- cd test-weblinks
- git clone https://github.com/joomla-extensions/weblinks.git .
- git checkout 4.0-dev
- cd ..
- rm jorobo.dist.ini
- cp test-weblinks/jorobo.dist.ini jorobo.dist.ini

- name: composer
image: joomlaprojects/docker-images:php7.4
volumes:
- name: composer-cache
path: /tmp/composer-cache
commands:
- cd test-weblinks
- composer install --no-progress --no-suggest

- name: test-jorobo-php72
image: joomlaprojects/docker-images:php7.2
commands:
- ./vendor/bin/phpunit tests

volumes:
- name: composer-cache
host:
path: /tmp/composer-cache

---
kind: signature
hmac: 67946c090df8fe10ed30aa366bd23567034532788652a1022ea49367cbf24737
hmac: 852f4bcbacf5987cfa2ec9eb53a85eb9a9a33dac6cc67fdffcfe5b850be24912

...
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,8 @@ vendor/*
robo.phar

# Test related files
tests/acceptance.suite.yml
tests/*/*Tester.php
tests/joomla-cms3*
tests/_output*
selenium-server-standalone.jar
codecept.phar
selenium.log
test-cms
test-weblinks

# JoRobo related files
/dist
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"require-dev": {
"squizlabs/php_codesniffer": "~3.7.2",
"friendsofphp/php-cs-fixer": "^3.4",
"phan/phan": "^5.4"
"phan/phan": "^5.4",
"phpunit/phpunit": "^8.5"
}
}
Loading

0 comments on commit 5ce0de6

Please sign in to comment.