box: blisteringherb/scholarship@0.0.6
# Build definition
build:
  steps:
    - script:
        name: install bundler
        code: sudo gem install bundler
    - script:
        name: Update Composer
        code: sudo composer self-update
    - leipert/composer-install@0.0.1
    - script:
        name: npm install
        code: |-
          sudo npm install -g npm@2.14.4
          npm -v
          mkdir -p $WERCKER_CACHE_DIR/wercker/npm
          npm config set cache $WERCKER_CACHE_DIR/wercker/npm
          sudo npm install
    - script:
        name: Build theme
        code: npm run build
deploy:
  steps:
    - bundle-install
    - script:
        name: write env var
        code: |-
          export CAP_PRIVATE_KEY=`mktemp`
          echo -e $WERCKER_APP_KEY_PRIVATE > $CAP_PRIVATE_KEY
    - cap
  after-steps:
    - hipchat-notify:
        token: $HIPCHAT_TOKEN
        room-id: $HIPCHAT_ROOM_ID
        from-name: wercker

box: blisteringherb/scholarship@0.0.6

# Build
# -----
build:
  steps:
    - script:
        name: update node
        code: |-
          curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
          sudo apt-get install -y nodejs
    - script:
        name: install bundler
        code: sudo gem install bundler
    - script:
        name: Update Composer
        code: sudo composer self-update
    - leipert/composer-install@0.0.1
    - script:
        name: npm install
        code: |-
          sudo npm install -g npm@2.14.4
          npm -v
          mkdir -p $WERCKER_CACHE_DIR/wercker/npm
          npm config set cache $WERCKER_CACHE_DIR/wercker/npm
          sudo npm install
    - script:
        name: Build theme
        code: npm run build
 
# Deploy
# ------
deploy:
  steps:
    - bundle-install
    - script:
        name: write env var
        code: |-
          export CAP_PRIVATE_KEY=`mktemp`
          echo -e $WERCKER_APP_KEY_PRIVATE > $CAP_PRIVATE_KEY
    - cap
  after-steps:
    - hipchat-notify:
        token: $HIPCHAT_TOKEN
        room-id: $HIPCHAT_ROOM_ID
        from-name: wercker

Update Node on Wercker box.
Update Node on Wercker box.
