sudo: required
language: node_js
services:
- docker
- redis-server
node_js:
- '5.0'
addons:
  postgresql: "9.4"
install: true
notifications:
  email:
  - howardc93@gmail.com
  - christian@paral.in
  - aqc2109@columbia.edu
# This is an attempt to make caching work
before_script:
- sudo docker pull yasp/yasp:latest
- sudo docker build -t "yasp/yasp:latest" .
script:
- sudo docker run -e "TEST_SKIP_BUILD=y" -e "TEST_INSTALL_GLOBAL=y" --net=host -i yasp/yasp:latest npm run test
#- npm run test
after_success:
- npm run coveralls
before_deploy:
- sudo docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
deploy:
  provider: script
  skip_cleanup: true
  on:
    branch: k8s
  script: sudo scripts/docker_hub_push.bash

sudo: required
language: node_js
services:
- docker
- redis-server
node_js:
- '5.0'
addons:
  postgresql: "9.4"
install: true
notifications:
  email:
  - howardc93@gmail.com
  - christian@paral.in
  - aqc2109@columbia.edu
# This is an attempt to make caching work
before_script:
- docker pull yasp/yasp:latest
- docker build -t "yasp/yasp:latest" .
script:
- docker run -e "TEST_SKIP_BUILD=y" -e "TEST_INSTALL_GLOBAL=y" --net=host -i yasp/yasp:latest npm run test
#- npm run test
after_success:
- npm run coveralls
before_deploy:
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
deploy:
  provider: script
  skip_cleanup: true
  on:
    branch: k8s
  script: scripts/docker_hub_push.bash

Remove sudo from docker commands
Remove sudo from docker commands
