language: "node_js"

node_js:
  - 0.8
  - 0.10

services:
  - rabbitmq # will start rabbitmq-server
  - mongodb # will start mongodb

branches:
  only:
    - v1.1

before_install:
  - npm install
  - sudo mkdir -p /var/log/push_server/ # To store log files
  - sudo chmod 777 /var/log/push_server/
  - cd scripts/
  - awk -f load_mcc_mnc_onmongo.awk mcc_mnc_list.txt
  - cd ..

before_script:
  - cd src
  - export NODE_TLS_REJECT_UNAUTHORIZED="0"
  - node start.js > out & # Start the server
  - PID=$! # Save the PID
  - cd .. && sleep 5 # Wait for everything to start correctly

script:
  - make tests

after_script:
  - sleep 30
  - kill $PID
  - sleep 15
  - cd src
  - cat out

notifications:
   email:
      - gll@tid.es
      - frsela@tid.es

language: "node_js"

node_js:
  - 0.8
  - 0.10

services:
  - rabbitmq # will start rabbitmq-server
  - mongodb # will start mongodb

branches:
  only:
    - v1.1

before_install:
  - npm install
  - sudo mkdir -p /var/log/push_server/ # To store log files
  - sudo chmod 777 /var/log/push_server/
  - cd scripts/
  - awk -f load_mcc_mnc_onmongo.awk mcc_mnc_list.txt
  - cd ..
  - make version.info

before_script:
  - cd src
  - export NODE_TLS_REJECT_UNAUTHORIZED="0"
  - node start.js > out & # Start the server
  - PID=$! # Save the PID
  - cd .. && sleep 5 # Wait for everything to start correctly

script:
  - make tests

after_script:
  - sleep 30
  - kill $PID
  - sleep 15
  - cd src
  - cat out

notifications:
   email:
      - gll@tid.es
      - frsela@tid.es

Call make to create the version.info file
Call make to create the version.info file
