.travis.yml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. dist: trusty
  2. sudo: required
  3. language: ruby
  4. services:
  5. - docker
  6. - mysql
  7. - postgresql
  8. env:
  9. global:
  10. - APP_SECRET_TOKEN=b2724973fd81c2f4ac0f92ac48eb3f0152c4a11824c122bcf783419a4c51d8b9bba81c8ba6a66c7de599677c7f486242cf819775c433908e77c739c5c8ae118d
  11. - RSPEC_TASK=spec:nofeatures
  12. - COVERALLS_PARALLEL=true
  13. - secure: fzmSI7PQz6CJiIJNAtLAuy3TMmYCrK4bUil3uufh8JkHfpSGWOZt2i6fZ8yZ7pzwG5Aw7eZDgdFsNcEPJlgUDJhlwjg+QxCJslhotTQ9qI3Ieo85peWlU9dZFTOZcrCu0net/hY2FE4ZpTRb5r8A/DRv9ukA8P8tShhePCjckgg=
  14. - secure: YjW07LpRSiC9xB6PhLQ4LVv2VphvF3IacV43PLfvzdagjy14yAwKXTUlSadgRaMbndB2dlCTe3YcY11a/xtX/2HDrF14NHPXQdL7e2dJUS3CDLSKZK26x1SOiaaDIrl1jO1xr5kOUd+564MAcNUzDTJQR4CrWl/5t6EwW4iYQVc=
  15. - secure: RJiSTB9Anax6uL6mgYY1m42w71ohlsfIlVCk7ho6W19ZfSzQOfom0mBdeNwfgmXsMMnvnqatfxSg8k3C//pRtI/tjzAovHd7t1YIN1IkDNf9uSpzrIeXXc4fSHaVxnl512oI/eBQy9MSBjVZjrg5XEzLKKEGsZCai+ZKB4PS+nM=
  16. matrix:
  17. - DATABASE_ADAPTER=mysql2
  18. - DATABASE_ADAPTER=postgresql DATABASE_USERNAME=postgres
  19. - DOCKER_IMAGE=cantino/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  20. - DOCKER_IMAGE=cantino/huginn DOCKERFILE=docker/multi-process/Dockerfile
  21. - DOCKER_IMAGE=huginn/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  22. - DOCKER_IMAGE=huginn/huginn DOCKERFILE=docker/multi-process/Dockerfile
  23. - RSPEC_TASK=spec:features
  24. matrix:
  25. exclude:
  26. - env: DOCKER_IMAGE=cantino/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  27. - env: DOCKER_IMAGE=cantino/huginn DOCKERFILE=docker/multi-process/Dockerfile
  28. - env: DOCKER_IMAGE=huginn/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  29. - env: DOCKER_IMAGE=huginn/huginn DOCKERFILE=docker/multi-process/Dockerfile
  30. - env: RSPEC_TASK=spec:features
  31. include:
  32. - rvm: 2.4.3
  33. env: DATABASE_ADAPTER=mysql2 DOCKER_IMAGE=cantino/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  34. - rvm: 2.4.3
  35. env: DATABASE_ADAPTER=mysql2 DOCKER_IMAGE=cantino/huginn DOCKERFILE=docker/multi-process/Dockerfile
  36. - rvm: 2.4.3
  37. env: DATABASE_ADAPTER=mysql2 DOCKER_IMAGE=huginn/huginn-single-process DOCKERFILE=docker/single-process/Dockerfile
  38. - rvm: 2.4.3
  39. env: DATABASE_ADAPTER=mysql2 DOCKER_IMAGE=huginn/huginn DOCKERFILE=docker/multi-process/Dockerfile
  40. - rvm: 2.5.0
  41. env: RSPEC_TASK=spec:features DATABASE_ADAPTER=mysql2
  42. - rvm: 2.5.0
  43. env: RSPEC_TASK=spec:features DATABASE_ADAPTER=postgresql DATABASE_USERNAME=postgres
  44. - rvm: 2.4.3
  45. env: RSPEC_TASK=spec:features DATABASE_ADAPTER=mysql2
  46. - rvm: 2.4.3
  47. env: RSPEC_TASK=spec:features DATABASE_ADAPTER=postgresql DATABASE_USERNAME=postgres
  48. - rvm: 2.3.6
  49. env: RSPEC_TASK=spec:features DATABASE_ADAPTER=mysql2
  50. - rvm: 2.3.6
  51. env: RSPEC_TASK=spec:features DATABASE_ADAPTER=postgresql DATABASE_USERNAME=postgres
  52. rvm:
  53. - 2.2.9
  54. - 2.3.6
  55. - 2.4.3
  56. - 2.5.0
  57. cache: bundler
  58. bundler_args: --without development production
  59. script:
  60. - if [ -z "${DOCKER_IMAGE}" ]; then bundle exec rake db:create db:migrate; else true; fi
  61. - if [ -z "${DOCKER_IMAGE}" ]; then bundle exec rake $RSPEC_TASK; else ./build_docker_image.sh; fi
  62. notifications:
  63. irc:
  64. channels:
  65. - chat.freenode.net#huginn
  66. template:
  67. - "<%{author}> %{branch} - %{commit} (%{commit_message}): %{message}"
  68. - 'Change view : %{compare_url}'
  69. - 'Build details : %{build_url}'
  70. webhooks: https://coveralls.io/webhook?repo_token=COVERALLS_REPO_TOKEN