Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous Deployment and Tests #25

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.idea
.sass-cache
/vendor/
/cache/*
/logs/*
silex.log
/config/parameters.yml
/.vagrant
node_modules/
web/css/*
web/img/*
web/js/*

14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Ensure that [VirtualBox](https://www.virtualbox.org), [Vagrant](http://www.vagra
```

4. (from within the machine) `composer install` to install composer dependencies
5. (from within the machine) `compass compile` to compile styles
6. add the following to your /etc/hosts file
5. (from within the machine) `npm install` to grab npm dependencies
6. (from within the machine) `./node_modules/.bin/gulp` to compile styles
7. add the following to your /etc/hosts file

```
10.10.10.10 app.local
Expand All @@ -40,15 +41,14 @@ All done! Now you can access the application at [http://app.local/](http://app.l
3. Install Dependencies

```
gem update --system
gem install compass
gem install susy
composer install
npm install
```

4. Compile stylesheets
4. Compile assets

```
compass compile
./node_modules/.bin/gulp
```

5. Create config/parameters.yml
Expand Down
Empty file modified cache/.gitkeep
100644 → 100755
Empty file.
34 changes: 34 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
machine:
php:
version: 7.0.4
services:
- redis

dependencies:
cache_directories:
- ~/.composer/cache

override:
- composer install --dev --no-progress --no-interaction --prefer-dist
- npm install --no-progress
- ./node_modules/.bin/gulp

post:
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit

test:
pre:
- "echo \"meetup_api_key: $MEETUP_API_KEY\nmeetup_group: $MEETUP_GROUP\" > config/parameters.yml"
override:
- php -S localhost:8080 -t web web/index.php:
background: true
- sleep 5
- npm test

deployment:
production:
branch: master
owner: AmsterdamPHP
commands:
- cp ~/.ssh/id_amsterdamphp.nl ~/.ssh/id_rsa
- ./vendor/bin/dep deploy
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@
},

"repositories": [
]
],
"require-dev": {
"deployer/deployer": "^4@dev",
"symfony/var-dumper": "^3.1"
}
}
Loading