Bitbucket Pipelines
CiEnvironmentDetector, Bitbucket build numarası, branch ve commit metadata'sını tanır. Maven projesinin köküne aşağıdaki pipeline dosyasını ekleyin:
bitbucket-pipelines.yml
image: maven:3.9.6-eclipse-temurin-21
pipelines:
default:
- step:
name: TestFly Tests
caches: [maven]
script:
- apt-get update && apt-get install -y wget gnupg
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- apt-get update && apt-get install -y google-chrome-stable
- mvn test -B
artifacts:
- target/testfly-report.html
- target/surefire-reports/**