machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker version
    - docker build --rm=false -t circleci/shellcheck .

test:
  override:
    - docker run -it -v $(pwd)/dist:/data circleci/shellcheck -c "shellcheck -e 2086 -e SC2046 manager"
    - docker run -it -v $(pwd)/lib:/data circleci/shellcheck -c "shellcheck -e 2086 -e SC2046 -e SC2034 *"
    - docker run -it -v $(pwd)/lib:/data circleci/shellcheck -c "shellcheck -e SC2034 *" || true

compile:
  override:
    - docker run -it -v $(pwd):/data circleci/shellcheck -c "./selfextractor_build.sh"
  artifacts:
    - "dist/"


#deployment:
#  release:
#    branch: mew
#    tag: /v[0-9]+(\.[0-9]+)*/
#    commands:
#      - package_cloud push Hypriot/rpi/debian/jessie $CIRCLE_ARTIFACTS/*.deb

machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker version
    - docker build --rm=false -t circleci/shellcheck .

test:
  override:
    - docker run -it -v $(pwd)/dist:/data circleci/shellcheck -c "shellcheck -e 2086 -e SC2046 manager"
    - docker run -it -v $(pwd)/lib:/data circleci/shellcheck -c "shellcheck -e 2086 -e SC2046 -e SC2034 *"
    - docker run -it -v $(pwd)/lib:/data circleci/shellcheck -c "shellcheck -e SC2034 *" || true

compile:
  override:
    - docker run -it -v $(pwd):/data circleci/shellcheck -c "./selfextractor_build.sh"
    - cp -r dist ${CIRCLE_ARTIFACTS}/


#deployment:
#  release:
#    branch: mew
#    tag: /v[0-9]+(\.[0-9]+)*/
#    commands:
#      - package_cloud push Hypriot/rpi/debian/jessie $CIRCLE_ARTIFACTS/*.deb

Revert "test specifying artifacts directly"
Revert "test specifying artifacts directly"

This reverts commit 7e44802aa28f50eef3a64258b8152227c9442422.
