Skip to content

Instantly share code, notes, and snippets.

@fdemiramon
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fdemiramon/eae810056be46b3ebf69 to your computer and use it in GitHub Desktop.
Save fdemiramon/eae810056be46b3ebf69 to your computer and use it in GitHub Desktop.
Wercker IDM-IO
box: wercker/php
services:
- wercker/mysql
build:
steps:
- script:
name: Add timezone to php box
code: echo 'date.timezone = "Europe/Paris"' >> $HOME/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- wercker/add-to-known_hosts@1.2.0:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
- mbrevda/php-lint:
directory: .
- script:
name: install dependencies
code: |
composer config -q github-oauth.github.com $GITHUB_OAUTH_TOKEN
composer update --no-interaction --prefer-source
- script:
name: echo php information
code: |
echo "php version $(php --version) running"
echo "from location $(which php)"
- fdemiramon/phpcs:
directory: src/
- script:
name: rebuilding app
code: sh rebuild.sh
- script:
name: starting xvfb
code: |
# Start xvfb which gives the context an virtual display
# which is required for tests that require an GUI
export DISPLAY=:99.0
start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1024x768x24 -ac +extension GLX +render -noreset
# Give xvfb time to start. 3 seconds is the default for all xvfb-run commands.
sleep 3
- rayd/selenium-install:
jar-file-url: "http://selenium-release.storage.googleapis.com/2.45/selenium-server-standalone-2.47.1.jar"
jar-file-version: "2.47.1"
md5-checksum: "a62db4c36e230a936455aaacda9340a8"
- script:
name: start server
code: app/console server:run --env=test --router=app/config/router_test.php &
- script:
name: testing functionalities
code: bin/behat
after-steps:
- slack-notifier:
url: $WERCKER_SLACK_POST_URL
channel: $SLACK_CHANNEL
username: Wercker
#build:
# steps:
# - wercker/add-ssh-key@0.0.3:
# keyname: SSH
# - wercker/add-to-known_hosts@1.2.0:
# hostname: github.com
# fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
# - eymengunay/capistrano@0.0.9
# after-steps:
# - kobim/slack-post:
# url: $WERCKER_SLACK_POST_URL
# channel: $SLACK_CHANNEL
# username: Wercker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment