Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update from Symfony 3.2 Standard Edition to Symfony 4.0 with api-plat…
…form/api-platform repo (#23)
- Loading branch information
Showing
139 changed files
with
27,704 additions
and
5,987 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,42 @@ | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
- docker | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- admin/node_modules | ||
- client/node_modules | ||
|
||
before_script: | ||
- sudo service mysql stop | ||
- sudo service postgresql stop | ||
- wget https://kubernetes-helm.storage.googleapis.com/helm-v2.6.1-linux-amd64.tar.gz | ||
- tar xzf helm-v2.6.1-linux-amd64.tar.gz | ||
- npm install -g react-scripts | ||
- while sudo lsof -Pi :5432 -sTCP:LISTEN -t; do sleep 1; done | ||
|
||
script: | ||
- docker-compose build | ||
- docker-compose run web composer install -o -n | ||
- docker-compose run web bin/console security:check | ||
- docker-compose run web bin/console doctrine:schema:validate --skip-sync | ||
- docker-compose up -d | ||
- docker-compose run web bin/console doctrine:schema:create | ||
- docker-compose run web bin/console hautelook:fixtures:load -n | ||
- docker-compose up -d | ||
- linux-amd64/helm lint api/helm/api/ | ||
- sleep 20 | ||
- sh -c "cd admin && PUBLIC_URL="/api-demo-admin-test" yarn install && yarn build" | ||
- sh -c "cd client && PUBLIC_URL="/api-demo-client-test" yarn install && yarn build" | ||
- docker-compose exec php composer install -o -n | ||
- docker-compose exec php bin/console security:check | ||
- docker-compose exec php bin/console doctrine:schema:validate --skip-sync | ||
- docker-compose exec php bin/console doctrine:schema:drop --force | ||
- docker-compose exec php bin/console doctrine:schema:create | ||
- docker-compose exec php bin/console hautelook:fixtures:load -n | ||
- docker-compose exec php bin/console doctrine:schema:drop --env=test --force | ||
- docker-compose exec php bin/console cache:warmup --env=test | ||
- docker-compose exec php bin/behat | ||
- curl http://localhost | ||
- curl http://localhost:81 | ||
- curl http://localhost:8080 | ||
- curl http://localhost:8081 | ||
- curl -k https://localhost | ||
- curl -k https://localhost:444 | ||
- curl -k https://localhost:8443 | ||
- curl -k https://localhost:8444 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
**/*.log | ||
**/._* | ||
**/.DS_Store | ||
**/.gitignore | ||
**/.gitattributes | ||
**/Thumbs.db | ||
**/*.md | ||
**/.dockerignore | ||
Dockerfile* | ||
.env* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
REACT_APP_API_ENTRYPOINT=https://localhost:8443 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:9.4-alpine | ||
|
||
RUN mkdir -p /usr/src/admin | ||
|
||
WORKDIR /usr/src/admin | ||
|
||
# Prevent the reinstallation of node modules at every changes in the source code | ||
COPY package.json yarn.lock ./ | ||
RUN yarn install | ||
|
||
COPY . ./ | ||
|
||
CMD yarn start |
Oops, something went wrong.