---
general:
  branches:
    ignore:
      - /^ultron\/.*/   # Ignore ultron/* branches
  artifacts:
    - coverage/

machine:
  node:
    version: 6.9.5
  services:
    - redis
    - docker
  ruby:
    version: "2.4.1"
  environment:
    CXX: g++-4.9
    ENABLE_LOCAL_CACHE: true
    REPORT_TOKEN: report-token-1
  hosts:
    bucketwebsitetester.s3-website-us-east-1.amazonaws.com: 127.0.0.1

dependencies:
  override:
    - rm -rf node_modules
    - npm install
  post:
    - sudo pip install flake8 yamllint
    - sudo pip install s3cmd==1.6.1
    # fog and ruby testing dependencies
    - gem install fog-aws -v 1.3.0
    - gem install mime-types -v 3.1
    - gem install rspec -v 3.5
    - gem install json
    - gem install digest
    # java sdk dependencies
    - sudo apt-get install -y -q default-jdk


test:
  override:
    - docker run --name squid-proxy -d --net=host
      --publish 3128:3128 sameersbn/squid:3.3.8-23
    - bash tests.bash:
        parallel: true

---
general:
  branches:
    ignore:
      - /^ultron\/.*/   # Ignore ultron/* branches
  artifacts:
    - coverage/

machine:
  node:
    version: 6.9.5
  services:
    - redis
    - docker
  ruby:
    version: "2.4.1"
  environment:
    CXX: g++-4.9
    ENABLE_LOCAL_CACHE: true
    REPORT_TOKEN: report-token-1
  hosts:
    bucketwebsitetester.s3-website-us-east-1.amazonaws.com: 127.0.0.1
  post:
    - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    - echo "deb https://dl.yarnpkg.com/debian/ stable main" |
      sudo tee /etc/apt/sources.list.d/yarn.list
    - sudo apt-get update && sudo apt-get install yarn -y

dependencies:
  override:
    - rm -rf node_modules
    - yarn install --pure-lockfile
  post:
    - sudo pip install flake8 yamllint
    - sudo pip install s3cmd==1.6.1
    # fog and ruby testing dependencies
    - gem install fog-aws -v 1.3.0
    - gem install mime-types -v 3.1
    - gem install rspec -v 3.5
    - gem install json
    - gem install digest
    # java sdk dependencies
    - sudo apt-get install -y -q default-jdk


test:
  override:
    - docker run --name squid-proxy -d --net=host
      --publish 3128:3128 sameersbn/squid:3.3.8-23
    - bash tests.bash:
        parallel: true

Switch from npm to yarn
Switch from npm to yarn
