Artifact Content
Not logged in

Artifact 7c435e9f01ef2f2bfa4662af4a1e27f9fa330c99:


machine:
  node:
    version: 7.7.1

dependencies:
  cache_directories:
    - node_modules

test:
  override:
    - ./node_modules/.bin/integration-loader && ./node_modules/.bin/integration setup
    - ./node_modules/.bin/integration test ilp-kit

deployment:
  development:
    branch: master
    commands:
      # Publish spec
      - git config --global user.email "info@circleci.com"
      - git config --global user.name "CircleCI"
      - git config --global push.default simple
      - node api/scripts/publish_web.js
  production:
    branch: release
    commands:
      # Build and push Docker image tagged latest and tagged with commit descriptor
      - docker build -t interledgerjs/ilp-kit:latest .
      - docker tag interledgerjs/ilp-kit:latest interledgerjs/ilp-kit:"$(git describe --tags)"
      - sed "s/<AUTH>/${DOCKER_TOKEN}/" < "dockercfg-template" > ~/.dockercfg
      - docker push interledgerjs/ilp-kit:latest
      - docker push interledgerjs/ilp-kit:"$(git describe --tags)"
      # Publish spec
      - git config --global user.email "info@circleci.com"
      - git config --global user.name "CircleCI"
      - git config --global push.default simple
      - node api/scripts/publish_web.js