Skip to content

Instantly share code, notes, and snippets.

View BlackDante's full-sized avatar

Kamil Kiełbasa BlackDante

View GitHub Profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
source ~/antigen.zsh
# Path to your oh-my-zsh installation.
export ZSH=/Users/dante/.oh-my-zsh
antigen use oh-my-zsh
#!/usr/bin/env bash
cd ./tests
for i in $(ls -d */);
do
cd ${i};
echo "------------------------------------------"
echo "Testing " ${i}
echo "------------------------------------------"
FROM node:boron
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Diagnostics" Version="1.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="1.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="1.1.1">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="1.1.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Project.Name\Project.Name.csproj" />
</ItemGroup>
const express = require('express')
const app = express()
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(3000, () => console.log('Server is running on :3000'))
image: node:6.9.4
before_script:
# install ssh-agent
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
# run ssh-agent
- eval $(ssh-agent -s)
# add ssh key stored in SSH_PRIVATE_KEY variable to the agent store
- ssh-add <(echo "$SSH_KEY")
# disable host key checking (NOTE: makes you susceptible to man-in-the-middle attacks)
var module = require('../index.js');
var expect = require('chai').expect;
describe('dummy test', () => {
it('should work', () => {
expect(1).to.equal(1);
});
});
image: node:6.9.4
all_tests:
script:
- npm install
- npm run test
var start;
var TICK = 100;
start = null;
setInterval(function () {
if (!start) {
start = +new Date
}