OSDN Git Service

Настройка travis-CI/CD
authorDmitry Dobryshin <dimkainc@mail.ru>
Mon, 26 Oct 2020 04:37:46 +0000 (07:37 +0300)
committerDmitry Dobryshin <dimkainc@mail.ru>
Mon, 26 Oct 2020 04:37:46 +0000 (07:37 +0300)
.travis.yml
codeception.yml

index 59efd5c..ad29c7f 100644 (file)
@@ -1,3 +1,12 @@
 language: php
+
+before_script:
+    # Start up a web server
+    - php -S 127.0.0.1:8888 -t web >/dev/null 2>&1 &
+    # Start up the webdriver
+    - phantomjs --webdriver=4444 >/dev/null 2>&1 &
+    # Install codeception
+    - composer install --prefer-source
+
 script:
     - vendor/bin/codecept run
index d5aecb3..55f3784 100644 (file)
@@ -12,6 +12,9 @@ modules:
     config:
         Yii2:
             configFile: 'config/test.php'
+        WebDriver:
+            url: 'http://127.0.0.1:8888'
+            browser: phantomjs
 
 # To enable code coverage:
 #coverage: