Skip to content

Commit

Permalink
(#5) Adapted test setup on Linux to gradually remove the container setup
Browse files Browse the repository at this point in the history
  • Loading branch information
s1hofmann committed Aug 12, 2020
1 parent 373d39d commit cdc0b2d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .build/build.sh
Expand Up @@ -21,11 +21,5 @@ echo "Entering working directory $targetDir"
cd $targetDir
echo "Installing node version $nodeVersion"
nvm install $nodeVersion
echo "npm ci"
npm ci
echo "npm run compile"
npm run compile
echo "init e2e test subpackage"
npm --prefix e2e/tests ci
echo "npm run coverage"
E2E_TEST=1 npm run coverage
7 changes: 7 additions & 0 deletions .build/run_linux.sh
Expand Up @@ -3,4 +3,11 @@ set -e

echo $PWD

npm ci
echo "npm run compile"
npm run compile
echo "init e2e test subpackage"
npm --prefix e2e/tests ci
echo "npm run coverage"
E2E_TEST=1 npm run coverage
docker exec nut-ci bash -c "bash $PWD/.build/build.sh ${PWD} ${TRAVIS_NODE_VERSION}"
2 changes: 1 addition & 1 deletion jest.config.js
Expand Up @@ -8,7 +8,7 @@ module.exports = {
preset: "ts-jest",
testEnvironment: "node",
testMatch: process.env.E2E_TEST ?
["**/__tests__/?(e2e)/**/*.[jt]s?(x)", "**/?(*.)?(e2e.)+(spec|test).[jt]s?(x)"] :
["**/__tests__/(e2e)/**/*.[jt]s?(x)", "**/?(*.)(e2e.)+(spec|test).[jt]s?(x)"] :
["**/__tests__/!(e2e)/**/*.[jt]s?(x)", "**/!(*.e2e.*)+(spec|test).[jt]s?(x)"],
testPathIgnorePatterns: [
"/node_modules/",
Expand Down

0 comments on commit cdc0b2d

Please sign in to comment.