Browse Source

Install dev dependencies on travis

pull/4182/head
nanaya 5 months ago
parent
commit
ecb613a351
3 changed files with 7 additions and 1 deletions
  1. 1
    0
      .travis.yml
  2. 5
    1
      build.sh
  3. 1
    0
      docker-compose.yml

+ 1
- 0
.travis.yml View File

@@ -38,6 +38,7 @@ env:
38 38
     - ES_VERSION=6.1.3 ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.zip
39 39
     - APP_URL=http://127.0.0.1:8000
40 40
     - GITHUB_TOKEN=98cbc568911ef1e060a3a31623f2c80c1786d5ff
41
+    - OSU_INSTALL_DEV=1
41 42
 
42 43
 install:
43 44
   - pecl install redis <<<''

+ 5
- 1
build.sh View File

@@ -26,7 +26,11 @@ php composer.phar config -g github-oauth.github.com 98cbc568911ef1e060a3a31623f2
26 26
 
27 27
 rm -f bootstrap/cache/*.php bootstrap/cache/*.json
28 28
 
29
-php composer.phar install --no-dev
29
+if [ -z "${OSU_INSTALL_DEV:-}" ]; then
30
+  php composer.phar install --no-dev
31
+else
32
+  php composer.phar install
33
+fi
30 34
 
31 35
 php artisan view:clear
32 36
 

+ 1
- 0
docker-compose.yml View File

@@ -49,6 +49,7 @@ services:
49 49
     user: ${UID:?err}
50 50
     environment:
51 51
       <<: *x-env
52
+      OSU_INSTALL_DEV: 1
52 53
       OSU_SKIP_CACHE_PERMISSION_OVERRIDE: 1
53 54
     command: ['./docker/php/start.sh', 'db:3306']
54 55
   yarn:

Loading…
Cancel
Save