| 12345678910111213141516171819202122232425262728293031323334 |
- stages:
- - build
- - test
- cache:
- paths:
- - ./ot_core/.Build/vendor
- build_image:
- stage: build
- image: docker:20.10
- before_script:
- - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- script:
- - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA .
- - docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest
- - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- - docker push $CI_REGISTRY_IMAGE:latest
- unit:otcore:
- image: $CI_REGISTRY_IMAGE:latest
- stage: test
- script:
- - composer --no-interaction --working-dir=./ot_core install
- - ./ot_core/.Build/bin/phpunit -c ./ot_core/Tests/Build/UnitTests.xml --coverage-text --colors=never
- artifacts:
- paths:
- - ./ot_core/coverage/
- when: always
- reports:
- junit: ./ot_core/coverage/junit-report.xml
- coverage: '/^\s*Lines:\s*\d+.\d+\%/'
|