Mirror of github.com/ppy/osu-web, in case ppy decides to take the original down for some reason.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.travis.yml 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. cache:
  2. directories:
  3. - $HOME/.yarn-cache
  4. - node_modules
  5. - vendor
  6. yarn: true
  7. dist: xenial
  8. sudo: false
  9. language: php
  10. php:
  11. - 7.2
  12. matrix:
  13. fast_finish: true
  14. services:
  15. - mysql
  16. - redis
  17. addons:
  18. chrome: stable
  19. env:
  20. global:
  21. - APP_ENV=testing
  22. - APP_KEY=base64:q7U5qyAkedR1F6UhN0SQlUxBpAMDyfHy3NNFkqmiMqA=
  23. - APP_URL=http://127.0.0.1:8000
  24. - CACHE_DRIVER=redis
  25. - DB_USERNAME=root
  26. - ES_VERSION=6.6.0 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.zip
  27. - GITHUB_TOKEN=98cbc568911ef1e060a3a31623f2c80c1786d5ff
  28. - NOTIFICATION_ENDPOINT=ws://127.0.0.1:3000
  29. - NOTIFICATION_SERVER_LISTEN_PORT=3000
  30. - OSU_INSTALL_DEV=1
  31. - PAYMENT_SANDBOX=true
  32. - SESSION_DRIVER=redis
  33. - SHOPIFY_DOMAIN=notarealdomainortld
  34. - SHOPIFY_STOREFRONT_TOKEN=notreal
  35. - SLACK_ENDPOINT=https://myconan.net/null/
  36. before_install:
  37. - travis_retry nvm install 10
  38. - nvm use 10
  39. install:
  40. # elasticsearch setup (part 1)
  41. - travis_retry bash -c 'wget "${ES_DOWNLOAD_URL}"'
  42. - unzip "elasticsearch-${ES_VERSION}.zip"
  43. - ./"elasticsearch-${ES_VERSION}/bin/elasticsearch" > elasticsearch.log &
  44. - phpenv config-add travis-php.ini
  45. - ./bin/db_setup.sh
  46. - ./build.sh
  47. # elasticsearch setup (part 2)
  48. # wait until es server is up
  49. - wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
  50. - php artisan es:create-search-blacklist
  51. - php artisan es:index-documents --yes
  52. jobs:
  53. include:
  54. - name: phpunit
  55. addons: skip
  56. script: ./bin/phpunit
  57. - name: browser tests
  58. script: ./bin/run_dusk.sh
  59. - name: tslint
  60. env:
  61. - OSU_SKIP_ASSET_BUILD=1
  62. addons: skip
  63. install: skip
  64. services: skip
  65. script:
  66. - yarn
  67. - yarn lint
  68. - name: karma
  69. env:
  70. - OSU_SKIP_ASSET_BUILD=1
  71. before_install:
  72. - travis_retry nvm install 10
  73. - nvm use 10
  74. - google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
  75. script:
  76. - yarn
  77. - bin/update_locales_and_routes_js
  78. - yarn karma start --single-run --browsers ChromeHeadless
  79. - name: apidoc
  80. addons: skip
  81. env:
  82. - OSU_SKIP_ASSET_BUILD=1
  83. script:
  84. - php artisan apidoc:generate
  85. after_script:
  86. - test -f elasticsearch.log && cat elasticsearch.log
  87. - test -f osu-notification-server/server.log && cat osu-notification-server/server.log