File tree 12 files changed +4803
-94
lines changed
12 files changed +4803
-94
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ imports:
16
16
17
17
tools :
18
18
external_code_coverage :
19
- runs : 2
20
- timeout : 1800
19
+ runs : 1
20
+ timeout : 150
21
21
Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ sudo: required
2
2
dist : trusty
3
3
language : php
4
4
php :
5
- - 7
6
- - 7.1
5
+ - 7.2
7
6
8
7
addons :
9
8
mariadb : " 10.0"
20
19
21
20
matrix :
22
21
include :
23
- - php : 7
24
- env : WS_TEST=lint_php
25
- - php : 7.1
26
- env : WS_TEST=lint_php
27
- - php : 7.1
28
- env : WS_TEST=js
29
- - php : 7.1
30
- env : WS_TEST=docker
22
+ - env : WS_TEST=lint_php
23
+ - env : WS_TEST=js
31
24
fast_finish : true
32
25
33
26
branches :
@@ -43,7 +36,9 @@ before_script:
43
36
- npm install -g yarn
44
37
45
38
# Install dependencies
46
- - make install-deps
39
+ - if [[ "$WS_TEST" = "js" ]]; then npm install; fi
40
+ - if [[ "$WS_TEST" = "js" ]]; then ./node_modules/bower/bin/bower install; fi
41
+ - if [[ "$WS_TEST" = "php" ]]; then composer install; fi
47
42
48
43
# Set up DB
49
44
- mysql -u root -e 'create database weinstein_test;'
@@ -68,9 +63,5 @@ script:
68
63
- if [[ "$WS_TEST" = "js" ]]; then ./node_modules/grunt-cli/bin/grunt; fi
69
64
- if [[ "$WS_TEST" = "js" ]]; then ./node_modules/grunt-cli/bin/grunt karma:continuous; fi
70
65
71
- # Docker
72
- - if [[ "$WS_TEST" = "docker" ]]; then ./node_modules/grunt-cli/bin/grunt; fi
73
- - if [[ "$WS_TEST" = "docker" ]]; then ./build/docker-images.sh; fi
74
-
75
66
after_script :
76
67
- if [[ "$WS_TEST" = "php" ]]; then cat storage/logs/laravel.log; fi
Original file line number Diff line number Diff line change
1
+ FROM node:9.5.0 as js-builder
2
+ WORKDIR /app
3
+ COPY package*.json /app/
4
+ RUN npm install
5
+ COPY . .
6
+ RUN ./node_modules/bower/bin/bower install --allow-root
7
+ RUN ./node_modules/grunt-cli/bin/grunt
8
+
9
+ FROM composer:latest as php-builder
10
+ COPY . /app
11
+ RUN composer install --ignore-platform-reqs --no-dev -o
12
+
13
+ FROM weinstein/webserver:latest
14
+ COPY . /var/www
15
+ COPY --from=js-builder /app/public/css/*.css /var/www/public/css/
16
+ COPY --from=js-builder /app/public/js /var/www/public/js
17
+ COPY --from=php-builder /app/vendor /var/www/vendor
18
+ USER root
19
+ RUN chown -R www-data /var/www && \
20
+ chgrp -R 0 /var/www && \
21
+ chmod -R g+rw /var/www/storage && \
22
+ chmod -R u+rw /var/www/storage
23
+ USER www-data
24
+ WORKDIR /var/www
Original file line number Diff line number Diff line change @@ -3,15 +3,3 @@ all: build
3
3
build :
4
4
./node_modules/grunt-cli/bin/grunt uglify
5
5
6
- install-deps :
7
- yarn install
8
- ./node_modules/bower/bin/bower install
9
- composer install
10
-
11
- test :
12
- ./vendor/phpunit/phpunit/phpunit -c tests/phpunit.xml
13
-
14
- clean :
15
- rm -rf node_modules
16
- rm -rf public/js/vendor
17
- rm -rf vendor
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " Weinstein " ,
2
+ "name" : " weinstein " ,
3
3
"description" : " " ,
4
4
"main" : " " ,
5
5
"authors" : [
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments