mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-02 19:33:14 +03:00
test
This commit is contained in:
parent
a489fe2f58
commit
7daa69fc17
12
.travis.yml
12
.travis.yml
@ -1,4 +1,5 @@
|
|||||||
os: linux
|
os: linux
|
||||||
|
dist: trusty
|
||||||
|
|
||||||
language: php
|
language: php
|
||||||
|
|
||||||
@ -8,7 +9,12 @@ addons:
|
|||||||
- apache2
|
- apache2
|
||||||
- libapache2-mod-fastcgi
|
- libapache2-mod-fastcgi
|
||||||
|
|
||||||
dist: trusty
|
before_script: make before_script
|
||||||
|
|
||||||
|
script: make test
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- test
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
@ -67,10 +73,6 @@ jobs:
|
|||||||
env: BRANCH=1.7.5.x
|
env: BRANCH=1.7.5.x
|
||||||
after_success: bash <(curl -s https://codecov.io/bash)
|
after_success: bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
before_script: make before_script
|
|
||||||
|
|
||||||
script: phpunit
|
|
||||||
|
|
||||||
#deploy:
|
#deploy:
|
||||||
# skip_cleanup: true
|
# skip_cleanup: true
|
||||||
# provider: script
|
# provider: script
|
||||||
|
2
Makefile
2
Makefile
@ -54,7 +54,7 @@ endif
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
ifeq ($(COMPOSER_IN_TESTS),1)
|
ifeq ($(COMPOSER_IN_TESTS),1)
|
||||||
phpunit
|
phpunit -c phpunit.xml.dist
|
||||||
else
|
else
|
||||||
cd $(PRESTASHOP_DIR) && composer run-script create-test-db --timeout=0
|
cd $(PRESTASHOP_DIR) && composer run-script create-test-db --timeout=0
|
||||||
cd $(PRESTASHOP_DIR) && php vendor/bin/phpunit -c $(ROOT_DIR)/phpunit.xml.dist
|
cd $(PRESTASHOP_DIR) && php vendor/bin/phpunit -c $(ROOT_DIR)/phpunit.xml.dist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user