Skip to content

Instantly share code, notes, and snippets.

View lmuzinic's full-sized avatar

Luka Muzinic lmuzinic

View GitHub Profile
# make sure you replace organisation/repo-name with your own
ENCRYPTION_FILTER="echo \$(echo \"- secure: \")\$(travis encrypt \"\$FILE='\`cat $FILE\`'\" -r organisation/repo-name)"
# on Linux use
split --bytes=100 --numeric-suffixes --suffix-length=2 --filter="$ENCRYPTION_FILTER" travis_id_rsa_base64 id_rsa_ >> .travis.yml
# on Mac OS X use
gsplit --bytes=100 --numeric-suffixes --suffix-length=2 --filter="$ENCRYPTION_FILTER" travis_id_rsa_base64 id_rsa_ >> .travis.yml
# on Linux use
base64 --wrap=0 travis_id_rsa > travis_id_rsa_base64
# on Mac OS X use
base64 --break=0 travis_id_rsa > travis_id_rsa_base64
@lmuzinic
lmuzinic / .travis.yml
Created March 12, 2015 10:03
Prepare repository for Travis CI
language: php
php:
- 5.6
install:
- composer install
script:
- vendor/bin/sculpin generate
@lmuzinic
lmuzinic / composer.json
Last active August 29, 2015 14:16
Rename sculpin.json to composer.json and add the following
"require": {
"sculpin/sculpin": "~2.0",
"dflydev/embedded-composer-console": "@dev",
"dflydev/embedded-composer-core": "@dev",
"composer/composer": "@dev",
},