forked from ppy/osu-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
57 lines (46 loc) · 1.34 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
cache:
directories:
- vendor
- node_modules
- $HOME/.yarn-cache
dist: trusty
sudo: false
language: php
php:
- 7.1
matrix:
fast_finish: true
addons:
apt:
sources:
- sourceline: 'deb http://repo.mysql.com/apt/ubuntu/ trusty mysql-5.7'
key_url: 'https://gist.githubusercontent.com/nanaya/8c435175aa56da449f7ca485efdbac0f/raw/aac9f8352a91323fee72d8417fccaf8b3027f813/mysql-2017.key'
packages:
- mysql-community-server
env:
global:
- DB_USERNAME=root
- SLACK_ENDPOINT=https://myconan.net/null/
- PATH=$HOME/.yarn/bin:$PATH
- APP_ENV=testing
- SESSION_DRIVER=array
- CACHE_DRIVER=array
- CAMO_KEY=""
- ES_VERSION=6.1.3 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.zip
install:
# elasticsearch setup (part 1)
- wget "${ES_DOWNLOAD_URL}"
- unzip "elasticsearch-${ES_VERSION}.zip"
- ./"elasticsearch-${ES_VERSION}/bin/elasticsearch" &
- nvm install 8.9
- nvm use 8.9
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
- ./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:index-documents --yes
before_script:
- php artisan locale:check
script: ./bin/phpunit