.travis.yml 996 B

123456789101112131415161718192021222324252627282930313233
  1. dist: trusty
  2. sudo: required
  3. env:
  4. TRAVIS_DOCKER_COMPOSE_VERSION: 1.17.0
  5. TRAVIS_NODE_VERSION: 8.9.3
  6. TRAVIS_NPM_VERSION: 5.5.1
  7. before_install:
  8. - sudo apt-get update -y
  9. - npm install -g [email protected]${TRAVIS_NPM_VERSION}
  10. - sudo curl -fsSL https://get.docker.com/ | sh
  11. - if [ -e /usr/local/bin/docker-compose ]; then sudo rm /usr/local/bin/docker-compose; fi
  12. - sudo curl -L https://github.com/docker/compose/releases/download/${TRAVIS_DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
  13. - sudo chmod +x docker-compose
  14. - sudo mv docker-compose /usr/local/bin
  15. - sudo docker-compose build --no-cache --force-rm
  16. - sudo docker-compose up -d wekandb
  17. - sudo docker-compose up -d wekan
  18. # ^^ Note - need to come up with some way of checking the output from docker run
  19. # that it was a success... perhaps the nodejs server can output a success message?
  20. language: node_js
  21. node_js:
  22. - "${TRAVIS_NODE_VERSION}"
  23. install:
  24. - "npm install"
  25. script:
  26. - "npm test"