image: clojure:alpine

cache:
  paths:
    - ~/.m2
  key: "$CI_COMMIT_REF_NAME"
  untracked: true

test:
  image: cmeter/clojure-phantomjs
  stage: test
  script:
    - LC_ALL=C lein phantomtest

linting:
  stage: test
  script:
    - lein do ancient, kibit
  allow_failure: true

build_image:
  image: docker:git
  stage: deploy
  services:
    - docker:dind
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
    - docker build -t $CI_REGISTRY_IMAGE .
    - docker push $CI_REGISTRY_IMAGE
  only:
    - master

build_dev_image:
  image: docker:git
  stage: deploy
  services:
    - docker:dind
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
    - docker build -t $CI_REGISTRY_IMAGE .
    - docker tag $CI_REGISTRY_IMAGE $CI_REGISTRY_IMAGE:develop
    - docker push $CI_REGISTRY_IMAGE:develop
  only:
    - master

image: clojure:alpine

cache:
  paths:
    - ~/.m2
  key: "$CI_COMMIT_REF_NAME"
  untracked: true

variables:
  LC_ALL: "C"

test:
  image: cmeter/clojure-phantomjs
  stage: test
  script:
    - lein phantomtest

linting:
  stage: test
  script:
    - lein do ancient, kibit
  allow_failure: true

build_image:
  image: docker:git
  stage: deploy
  services:
    - docker:dind
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
    - docker build -t $CI_REGISTRY_IMAGE .
    - docker push $CI_REGISTRY_IMAGE
  only:
    - master

build_dev_image:
  image: docker:git
  stage: deploy
  services:
    - docker:dind
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
    - docker build -t $CI_REGISTRY_IMAGE .
    - docker tag $CI_REGISTRY_IMAGE $CI_REGISTRY_IMAGE:develop
    - docker push $CI_REGISTRY_IMAGE:develop
  only:
    - master

Set LC_ALL for all commands
Set LC_ALL for all commands
