Skip to content

Running Boot on CI systems

Juho Teperi edited this page Mar 8, 2016 · 15 revisions

CircleCI

Challenges

  • Circle saves the cache after dependencies step so files downloaded in test step are not cached
    • Solution: Run tests in dependencies step
  • Boot sometimes uses over 4G memory when downloading deps
    • Set _JAVA_OPTIONS

circle.yml

machine:
  java:
    version: oraclejdk8
  environment:
    # Boot sometimes uses over 4G when dowloading deps
    # Limit could be higher probably, 2-3G?
    _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
dependencies:
  pre:
    # Could use `latest` tag instead of version number
    - curl -L https://github.com/boot-clj/boot-bin/releases/download/2.5.2/boot.sh -o ~/bin/boot
    - chmod +x ~/bin/boot
  override:
    # Run tests here so everything loaded by test task is cached
    - boot run-tests
  cache_directories:
    - "~/bin"
test:
  override:
    # Nothing to run here
    - echo 1

Travis?

Clone this wiki locally