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 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. install:
  37. # elasticsearch setup (part 1)
  38. - travis_retry bash -c 'wget "${ES_DOWNLOAD_URL}"'
  39. - unzip "elasticsearch-${ES_VERSION}.zip"
  40. - ./"elasticsearch-${ES_VERSION}/bin/elasticsearch" > elasticsearch.log &
  41. - travis_retry nvm install 10
  42. - nvm use 10
  43. - phpenv config-add travis-php.ini
  44. - ./bin/db_setup.sh
  45. - ./build.sh
  46. # elasticsearch setup (part 2)
  47. # wait until es server is up
  48. - wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
  49. - php artisan es:create-search-blacklist
  50. - php artisan es:index-documents --yes
  51. jobs:
  52. include:
  53. - script: ./bin/phpunit
  54. name: "phpunit"
  55. - script: ./bin/run_dusk.sh
  56. name: "browser tests"
  57. - script: yarn lint
  58. name: "tslint"
  59. after_script:
  60. - cat elasticsearch.log
  61. - test -f osu-notification-server/server.log && cat osu-notification-server/server.log