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
test('a customer can order a product', async () => { | |
const {app, productRepo, orderRepo} = await createTestHarness(); | |
const product = await productRepo.create(aProduct()); | |
const cartId = someRandomString(); | |
await app | |
.post(`/cart/${cartId}`) |
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
FROM node:0.12.7 | |
WORKDIR /app | |
ADD ./package.json /app/ | |
RUN npm config set loglevel verbose | |
RUN npm install | |
ADD . /app | |
CMD ["npm", "start"] |
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 | |
# Assuming Cocoapods was installed (sudo gem install cocoapods) | |
JARBALL="target/server/$SERVER_ARTIFACT-$SERVER_VERSION" | |
# assume maven dependency:unpack has placed our jarball in target/server as configued in pom.xml | |
unzip -o "$JARBALL-deployable.jar" -d "target/server" | |
MAX_ATTEMPTS=30 |