.gitlab-ci.yml 898 Bytes
Newer Older
Matthieu Moy's avatar
Matthieu Moy committed
1 2 3 4 5
# Cache downloaded dependencies and plugins between builds.
# Not strictly necessary, but speeds up the builds.
cache:
  key: "$CI_JOB_NAME"
  paths:
Matthieu Moy's avatar
Matthieu Moy committed
6 7
    # Must be within the repository under test hence we can't use the
    # default ~/.m2
Matthieu Moy's avatar
Matthieu Moy committed
8 9 10
    - .m2/repository
variables:
  # Use the cached directory above.
Matthieu Moy's avatar
Matthieu Moy committed
11
  MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository"
Matthieu Moy's avatar
Matthieu Moy committed
12 13 14 15 16 17 18 19 20

junit:
  image: usommerl/maven-javafx # docker image with Maven + JavaFX
  # alternative: use image: maven and 'apt install openjfx' in
  # before_script.
  before_script:
    # The runners on the forge need a proxy to access the web. mvn
    # ignores the $http_proxy & friends variable => write a
    # configuration file that does this for us.
Matthieu Moy's avatar
Matthieu Moy committed
21
    - . lab2-tools/poneymon_fx/setup-mvn-proxy.sh
Matthieu Moy's avatar
Matthieu Moy committed
22 23 24 25
    # Useful only for debugging
    - cat ~/.m2/settings.xml
  script:
    - echo "Continuous integration not set up"; exit 1