machine:
        java:
                version: oraclejdk8
        services:
                - docker

dependencies:
        override:
                - echo Y | lein upgrade 2.5.1:
                    timeout: 900
                - lein version-spec
                - lein deps

        post:
                - lein cljsbuild once
test:
        override: 
                - lein test:
                    timeout: 1800
                - lein clean && lein with-profile uberjar uberjar
                - docker build -t onyx/onyx-dashboard:$CIRCLE_SHA1 . | tee docker-build.log
                - docker tag $(tail -1 docker-build.log | cut -d ' ' -f 3) onyx/onyx-dashboard:latest
                - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
                - docker push onyx/onyx-dashboard:$CIRCLE_SHA1
                - docker push onyx/onyx-dashboard:latest
                - cp target/onyx-dashboard.jar $CIRCLE_ARTIFACTS

machine:
        java:
                version: oraclejdk8
        services:
                - docker

dependencies:
        override:
                - echo Y | lein upgrade 2.5.1:
                    timeout: 900
                            #- lein version-spec
                - lein deps

        post:
                - lein cljsbuild once
test:
        override: 
                - lein test:
                    timeout: 1800
                - lein clean && lein with-profile uberjar uberjar
                - docker build -t onyx/onyx-dashboard:$CIRCLE_SHA1 . | tee docker-build.log
                - docker tag $(tail -1 docker-build.log | cut -d ' ' -f 3) onyx/onyx-dashboard:latest
                - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
                - docker push onyx/onyx-dashboard:$CIRCLE_SHA1
                - docker push onyx/onyx-dashboard:latest
                - cp target/onyx-dashboard.jar $CIRCLE_ARTIFACTS

Disable version-spec in build too.
Disable version-spec in build too.
