before_script:
  - apt-get update -y
  - apt-get install default-jre -y
  - wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
  - chmod a+x lein
  - export LEIN_ROOT=1
  - export PATH=$PATH:.

build:
  stage: build
  script:
    - ./scripts/build.sh .
  only:
    - master

# linters:
#   stage: build
#   script:
#     - lein sub kibit
#     - lein sub eastwood
#     - lein sub bikeshed -m 100

# docs:
#   stage: build
#   script: lein codox

# test:
#   stage: test
#   script: lein sub test

before_script:
  - apt-get update -y
  - apt-get install default-jre -y
  - wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein
  - chmod a+x lein
  - export LEIN_ROOT=1
  - export PATH=$PATH:.

build:
  stage: build
  script:
    - ./scripts/build.sh $(pwd)
  only:
    - master

# linters:
#   stage: build
#   script:
#     - lein sub kibit
#     - lein sub eastwood
#     - lein sub bikeshed -m 100

# docs:
#   stage: build
#   script: lein codox

# test:
#   stage: test
#   script: lein sub test

Build script has been improved to get the lein path via args
Build script has been improved to get the lein path via args
