forked from ppy/osu-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (61 loc) · 1.73 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
cache:
directories:
- $HOME/.yarn-cache
- node_modules
- vendor
yarn: true
dist: xenial
sudo: false
language: php
php:
- 7.2
matrix:
fast_finish: true
services:
- mysql
- redis
addons:
chrome: stable
env:
global:
- APP_ENV=testing
- APP_KEY=base64:q7U5qyAkedR1F6UhN0SQlUxBpAMDyfHy3NNFkqmiMqA=
- APP_URL=http://127.0.0.1:8000
- CACHE_DRIVER=redis
- DB_USERNAME=root
- ES_VERSION=6.6.0 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.zip
- GITHUB_TOKEN=98cbc568911ef1e060a3a31623f2c80c1786d5ff
- NOTIFICATION_ENDPOINT=ws://127.0.0.1:3000
- NOTIFICATION_SERVER_LISTEN_PORT=3000
- OSU_INSTALL_DEV=1
- PAYMENT_SANDBOX=true
- SESSION_DRIVER=redis
- SHOPIFY_DOMAIN=notarealdomainortld
- SHOPIFY_STOREFRONT_TOKEN=notreal
- SLACK_ENDPOINT=https://myconan.net/null/
install:
# elasticsearch setup (part 1)
- travis_retry bash -c 'wget "${ES_DOWNLOAD_URL}"'
- unzip "elasticsearch-${ES_VERSION}.zip"
- ./"elasticsearch-${ES_VERSION}/bin/elasticsearch" > elasticsearch.log &
- travis_retry nvm install 10
- nvm use 10
- phpenv config-add travis-php.ini
- ./bin/db_setup.sh
- ./build.sh
# elasticsearch setup (part 2)
# wait until es server is up
- wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200
- php artisan es:create-search-blacklist
- php artisan es:index-documents --yes
jobs:
include:
- script: ./bin/phpunit
name: "phpunit"
- script: ./bin/run_dusk.sh
name: "browser tests"
- script: yarn lint
name: "tslint"
after_script:
- cat elasticsearch.log
- test -f osu-notification-server/server.log && cat osu-notification-server/server.log