echo -e "[email protected]\[email protected]\[email protected]" > repos.lst # Add all your repositories in this file
chmod +x ./mergerepos.sh
./mergerepos.sh new-project repos.lst # Run the script with the new project name| #!/bin/sh | |
| # This script must be added in the "User Data" field of the ec2 instance configuration | |
| service iptables start | |
| iptables -F | |
| iptables -t nat -F | |
| iptables -t mangle -F |
| <?php | |
| namespace App\ModuleContractBundle\Form; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormBuilderInterface; | |
| use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
| class CategoryType extends AbstractType | |
| { |
| <?php | |
| namespace AppBundle\JsonLd\Serializer; | |
| use Dunglas\ApiBundle\Api\IriConverterInterface; | |
| use Dunglas\ApiBundle\Api\ResourceCollectionInterface; | |
| use Dunglas\ApiBundle\JsonLd\ContextBuilder; | |
| use Dunglas\ApiBundle\JsonLd\Serializer\ItemNormalizer; | |
| use Dunglas\ApiBundle\Mapping\ClassMetadataFactoryInterface; | |
| use Symfony\Component\PropertyAccess\PropertyAccessorInterface; |
| WWW_IP := $(shell docker inspect --format '{{ .NetworkSettings.IPAddress }}' $(shell docker-compose ps -q www)) | |
| EXEC_WWW=docker exec -ti $(shell docker-compose ps -q www) | |
| NGADMIN_SERVER_URL?=$(WWW_IP) | |
| serve-ngadmin: | |
| if [ ! -d .tmpsrc/ng-admin ]; then git clone [email protected]:marmelab/ng-admin.git .tmpsrc/ng-admin; fi | |
| $(EXEC_WWW) bash -c "cd .tmpsrc/ng-admin && make install" | |
| $(EXEC_WWW) bash -c "sed -i 's/..\/bower_components\/ng-admin\//http:\/\/$(NGADMIN_SERVER_URL):8000\//g' .tmp/serve/index.html" | |
| $(EXEC_WWW) bash -c "sed -i 's/http:\/\/localhost/http:\/\/$(NGADMIN_SERVER_URL)/g' .tmpsrc/ng-admin/examples/blog/index.html" | |
| $(EXEC_WWW) bash -c "cd .tmpsrc/ng-admin && ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --colors --devtool cheap-module-inline-source-map --content-base examples/blog --port 8000 --host=$(WWW_IP)" |
See https://github.com/mRoca/MrocaRequestLogBundle
The theory :
- A developer runs behat tests on the api project
- Behat tests generate api mock files (
@Then save the response as mock file) - Api mock files are saved in a specific path (
%behat_mock_responses_dir%) - Another git repository contains all mock files, updated from the api directory with a script
- In the front, a bash script and a private ssh key in the repo allow to get the mocks repository before tests
- In the front, a fake Guzzle Client is created : for each Guzzle call, if a mock file matching the request exists, its content is returned, else a 404 error us thrown
| <?php | |
| namespace AppBundle\Entity; | |
| use Doctrine\Common\Collections\ArrayCollection; | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Symfony\Component\Validator\Constraints as Assert; | |
| use Gedmo\Mapping\Annotation as Gedmo; | |
| use Symfony\Component\Serializer\Annotation\Groups; |
LE PROJET NODE.CI A ÉTÉ NOMINÉ PARMI LES 3 LAURÉATS NATIONAUX "EN ÉMERGENCE"
Le projet Node.ci, incubé au Business and Innovation Centre (BIC) de Montpellier Agglomération depuis février 2013, a été nominé parmi les 3 lauréats nationaux "en émergence" de la quizième édition du concours de création d'entreprises innovantes du Ministère de l'Education supérieur et de la Recherche et d'OSEO, devenu bpifrance.
Node.ci est un logiciel d'intégration continue sur le Cloud pour langage de programmation Javascript. Il est porté par Eric Burin des Roziers, co-fondateur technique de TripAdvisor.com et ses deux associés Nicolas Herment, spécialiste Javascript et Benjamin Hirsch, expert financier.
| # TODO add the docker volume dir in /cache | |
| before_script: | |
| - docker info | |
| - docker build -t thom-platine/tests tests/docker/ | |
| - docker run --name thom-platine-tests -v $(pwd):/var/www/ -v /cache:/cache -e "COMPOSER_CACHE_DIR=/cache/composer" -d thom-platine/tests tail -f /dev/null | |
| - docker exec thom-platine-tests composer install --no-interaction | |
| stages: | |
| - test |