-
create-react-native-app purescript-app; cd purescript-app
-
pulp init --force
-
pulp build
-
src/Main.js
var React = require("react");
var RN = require("react-native");
exports.text = function(props){
create-react-native-app purescript-app; cd purescript-app
pulp init --force
pulp build
src/Main.js
var React = require("react");
var RN = require("react-native");
exports.text = function(props){
FROM node:6.10.0-alpine | |
RUN apk update && apk upgrade | |
# Install packages needed for production | |
RUN apk add --update bash python make g++ | |
# Install packages needed for testing | |
RUN apk add --update ruby openssl |
#!/bin/bash | |
# Outputs a pipeline that targets agents that have the same 'name' meta-data | |
# value as the step that does the pipeline upload. This means that all the | |
# steps will run on the same agent machine, assuming that the 'name' meta-data | |
# value is unique to each agent. | |
# | |
# Each agent needs to be configured with meta-data like so: | |
# | |
# meta-data="name=<unique-name>" |
When you declare a request and response using the traditional Pact DSL, ("uponReceiving" and "willRespondWith") you're building a structure that has three purposes -
The three different uses of this structure are hidden from you when using HTTP Pact because the mock service handles numbers 1 & 2 in the consumer tests, and the verification task handles number 3 for you in the provider tests. When using Pact in a non-HTTP scenario, there is no nice neat protocol layer to inject the code to do this for you, so you have to explicitly do each step.
The file expected_data_from_collector.rb
declares an object graph using the Pact DSL. This is going to be used to create the concrete example and the contract. This could be declared inline, but for easier maintenance, and to allow the contr
You will need ruby or the standalone mock service to run these examples. | |
$ gem install pact-mock_service |
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"log" | |
"net/rpc" | |
) | |
func main() { |
package main | |
import ( | |
"log" | |
"net/mail" | |
"encoding/base64" | |
"net/smtp" | |
"fmt" | |
"strings" |