This file contains 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
class Hello | |
def self.world | |
puts "Hello, world!" | |
end | |
end |
This file contains 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| |
This file contains 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 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 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 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 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 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 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 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 |
NewerOlder