Skip to content

Instantly share code, notes, and snippets.

@bryoussef-coder
Forked from eliasnogueira/.gitlab-ci.yml
Created April 29, 2022 11:29
Show Gist options
  • Save bryoussef-coder/7e75a3867e623c4af63fee72827d62dd to your computer and use it in GitHub Desktop.
Save bryoussef-coder/7e75a3867e623c4af63fee72827d62dd to your computer and use it in GitHub Desktop.
Example of a pipeline script using GitLab CI
image: markhobson/maven-chrome:jdk-11
stages:
- build
- test
variables:
MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
cache:
paths:
- .m2/repository/
- target/
build:
stage: build
script:
- mvn compile
test:
stage: test
script:
- mvn test -Dtest=com.eliasnogueira.wdm.GithubWDMPageTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment