$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
$zipFile = "$($env:TEMP)\TeamCity.VSTest.TestLogger.zip" | |
$zipOutput = "$($env:TEMP)\TeamCity.VSTest.TestLogger" | |
$loggerPath = "$($zipOutput)\vstest15" | |
$vsTestExtensions = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\Extensions" | |
try { | |
Invoke-WebRequest -Uri "http://teamcity.jetbrains.com/guestAuth/app/rest/builds/buildType:TeamCityPluginsByJetBrains_TeamCityVSTestTestAdapter_Build,pinned:true,status:SUCCESS,branch:master,tags:release/artifacts/content/TeamCity.VSTest.TestLogger.zip" -OutFile $zipFile | |
# A PowerShell script that adds the latest version of the Azure Artifacts credential provider | |
# plugin for Dotnet and/or NuGet to ~/.nuget/plugins directory | |
# To overwrite existing plugin with the latest, run installcredprovider.ps1 -Force | |
# More: https://github.com/Microsoft/artifacts-credprovider/blob/master/README.md | |
param( | |
[switch]$Force | |
) | |
$script:ErrorActionPreference = 'Stop' |
@echo off | |
set "TARGET=%1" | |
if "%TARGET%"=="" set "TARGET=ci" | |
REM Capture all tokens after the "target" and pass them on the the script | |
for /f "tokens=1,* delims= " %%a in ("%*") do set ALL_BUT_FIRST=%%b | |
powershell -ExecutionPolicy ByPass -File "build.ps1" -script "build.cake" -target "%TARGET%" -verbosity normal %ALL_BUT_FIRST% |
########################################################################## | |
# This is the Cake bootstrapper script for PowerShell. | |
# This file was downloaded from https://github.com/cake-build/resources | |
# Feel free to change this file to fit your needs. | |
########################################################################## | |
<# | |
.SYNOPSIS | |
This is a Powershell script to bootstrap a Cake build. |
./gradlew buildDocker | |
docker-compose -f docker-compose.yml -f docker-compose.e2e.yml down --remove-orphans | |
docker-compose -f docker-compose.yml -f docker-compose.e2e.yml up -d | |
docker run -it --rm \ | |
-v ${PWD}:/root/labrea \ | |
-w /root/labrea \ | |
--net labrea_default \ | |
-e REUTERS_JDBC_URL=jdbc:postgresql://reuters-aptemod:5432/reuters_aptemod \ | |
-e TREC_JDBC_URL=jdbc:postgresql://trec-legal-2010:5432/trec_legal_2010 \ | |
-e LABREA_WEBAPP_HOST=labrea-webapp \ |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <[email protected]> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
apply plugin: 'java' | |
configurations { | |
integrationTestCompile.extendsFrom testCompile | |
integrationTestRuntime.extendsFrom testRuntime | |
} | |
sourceSets { | |
integrationTest { | |
java.srcDir file('src/integration-test/java') |
import fetch from 'node-fetch'; | |
import { getCategories } from './data'; | |
jest.mock('node-fetch'); | |
beforeEach(() => { | |
jest.resetAllMocks(); | |
}); |
import fetch from 'node-fetch'; | |
import { getCategories } from './data'; | |
beforeEach(() => { | |
// Reset the modules back to their original state. | |
// In this case, we are setting `node-fetch` back | |
// to the original, unmocked version | |
jest.resetModules(); | |
}); |