This file contains hidden or 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
# Start with the offical image for PHP 5.6 | |
FROM php:5.6 | |
# Install additonal packages | |
RUN apt-get update | |
RUN apt-get install -y git unzip libmcrypt-dev libmemcached-dev libz-dev | |
RUN pecl install memcached | |
# Install/Enable PHP extensions | |
RUN docker-php-ext-install pcntl mcrypt |
This file contains hidden or 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
app: | |
build: | |
image: app | |
dockerfile_path: Dockerfile | |
cached: true |
This file contains hidden or 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
- type: parallel | |
steps: | |
- service: app | |
command: vendor/bin/phpunit |
This file contains hidden or 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
- type: parallel | |
steps: | |
- service: app | |
command: vendor/bin/phpunit tests/Auth/ | |
- service: app | |
command: vendor/bin/phpunit tests/Broadcasting/ | |
- service: app | |
command: vendor/bin/phpunit tests/Bus/ | |
- service: app | |
command: vendor/bin/phpunit tests/Cache/ |
This file contains hidden or 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
build: | |
build: | |
image: app | |
dockerfile_path: Dockerfile | |
cached: true | |
volumes_from: | |
- data | |
test: | |
build: | |
image: app |
This file contains hidden or 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
- type: serial | |
steps: | |
- type: serial | |
steps: | |
- service: build | |
command: composer install --prefer-source --no-interaction | |
- type: parallel | |
steps: | |
- service: test | |
command: vendor/bin/phpunit tests/Auth/ |
This file contains hidden or 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
#!/bin/bash | |
set -e | |
# authenticate to google cloud | |
codeship_google authenticate | |
# set compute zone | |
gcloud config set compute/zone us-central1-a |
This file contains hidden or 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
void curl_json_push(const char* url, const char* payload, const char* method, const char* username, const char* password) { | |
pid_t pid; | |
curl_global_init(CURL_GLOBAL_ALL); | |
pid = fork(); | |
if ( pid == 0 ) { | |
CURL *curl; | |
struct curl_slist *headers = NULL; |
This file contains hidden or 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
void log_event( const char* title, const char* level, const char* message ) { | |
char *payload; | |
char url[MAX_STRING_LENGTH]; | |
json_t *obj = json_array(); | |
json_t *event = json_object(); | |
json_t *data = json_object(); | |
if ( NETUITIVE_USERNAME != NULL && NETUITIVE_PASSWORD != NULL ) { | |
json_object_set_new(event, "title", json_string( title )); |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# bring in the vagrant dependency manager | |
require File.dirname(__FILE__) + "/dependency_manager" | |
# make sure the following plugins are installed (managed using dependency manager above) | |
check_plugins ["vagrant-exec", "vagrant-hostmanager", "vagrant-triggers"] | |
Vagrant.configure(2) do |config| |