Kaynağa Gözat

add a basic CI configuration

Olivier Massot 4 yıl önce
ebeveyn
işleme
25d774d641
2 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. 2 0
      .gitignore
  2. 17 0
      .gitlab-ci.yml

+ 2 - 0
.gitignore

@@ -1,2 +1,4 @@
 /.project
 /.idea/
+.Build/
+composer.lock

+ 17 - 0
.gitlab-ci.yml

@@ -0,0 +1,17 @@
+
+before_script:
+  - wget https://composer.github.io/installer.sig -O - -q | tr -d '\n' > installer.sig
+  - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
+  - php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
+  - php composer-setup.php
+  - php -r "unlink('composer-setup.php'); unlink('installer.sig');"
+
+unit_otcore:
+  stage: test
+
+  before_script:
+    - php ot_core/composer.phar --dev install
+    - export TYPO3_PATH_WEB=$PWD/ot_core/.Build/Web
+
+  script:
+    - ot_core/.Build/bin/phpunit -c ot_core/Tests/Build/UnitTests.xml