.travis.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. dist: bionic
  2. sudo: required
  3. language: ruby
  4. services:
  5. - docker
  6. - mysql
  7. - postgresql
  8. before_install:
  9. - sudo apt-get -y install jq
  10. - gem install bundler -v '< 2' --conservative --force
  11. before_script:
  12. - sudo systemctl start postgresql
  13. env:
  14. global:
  15. - APP_SECRET_TOKEN=b2724973fd81c2f4ac0f92ac48eb3f0152c4a11824c122bcf783419a4c51d8b9bba81c8ba6a66c7de599677c7f486242cf819775c433908e77c739c5c8ae118d
  16. - COVERALLS_PARALLEL=true
  17. - secure: fzmSI7PQz6CJiIJNAtLAuy3TMmYCrK4bUil3uufh8JkHfpSGWOZt2i6fZ8yZ7pzwG5Aw7eZDgdFsNcEPJlgUDJhlwjg+QxCJslhotTQ9qI3Ieo85peWlU9dZFTOZcrCu0net/hY2FE4ZpTRb5r8A/DRv9ukA8P8tShhePCjckgg=
  18. - secure: YjW07LpRSiC9xB6PhLQ4LVv2VphvF3IacV43PLfvzdagjy14yAwKXTUlSadgRaMbndB2dlCTe3YcY11a/xtX/2HDrF14NHPXQdL7e2dJUS3CDLSKZK26x1SOiaaDIrl1jO1xr5kOUd+564MAcNUzDTJQR4CrWl/5t6EwW4iYQVc=
  19. - secure: RJiSTB9Anax6uL6mgYY1m42w71ohlsfIlVCk7ho6W19ZfSzQOfom0mBdeNwfgmXsMMnvnqatfxSg8k3C//pRtI/tjzAovHd7t1YIN1IkDNf9uSpzrIeXXc4fSHaVxnl512oI/eBQy9MSBjVZjrg5XEzLKKEGsZCai+ZKB4PS+nM=
  20. matrix:
  21. - DATABASE_ADAPTER=mysql2
  22. - DATABASE_ADAPTER=postgresql DATABASE_USERNAME=postgres
  23. - DOCKER_IMAGE=huginn/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  24. - DOCKER_IMAGE=huginn/huginn DOCKERFILE=docker/multi-process/Dockerfile
  25. matrix:
  26. exclude:
  27. - env: DOCKER_IMAGE=huginn/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  28. - env: DOCKER_IMAGE=huginn/huginn DOCKERFILE=docker/multi-process/Dockerfile
  29. include:
  30. - rvm: 2.6.5
  31. env: DATABASE_ADAPTER=mysql2 DOCKER_IMAGE=huginn/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  32. - rvm: 2.6.5
  33. env: DATABASE_ADAPTER=mysql2 DOCKER_IMAGE=huginn/huginn DOCKERFILE=docker/multi-process/Dockerfile
  34. rvm:
  35. - 2.5.8
  36. - 2.6.6
  37. cache: bundler
  38. bundler_args: --without development production
  39. script:
  40. - if [ -z "${DOCKER_IMAGE}" ]; then bundle exec rake db:create db:migrate; else true; fi
  41. - if [ -z "${DOCKER_IMAGE}" ]; then bundle exec rake; else ./build_docker_image.sh; fi
  42. notifications:
  43. irc:
  44. channels:
  45. - chat.freenode.net#huginn
  46. template:
  47. - "<%{author}> %{branch} - %{commit} (%{commit_message}): %{message}"
  48. - 'Change view : %{compare_url}'
  49. - 'Build details : %{build_url}'
  50. webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN