Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing server test environment on travis #466

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ script:
echo "Master branch; running production build.";
nohup env-path -p .env.production REACT_APP_ENV_TEXT=production vite build;
fi
# - cd .. && ./node_modules/.bin/mocha --exit
# - cd client && REACT_APP_ENV_TEXT=test node --experimental-vm-modules node_modules/jest/bin/jest.js --maxWorkers=50% --workerIdleMemoryLimit=512MB
- REACT_APP_ENV_TEXT=test node --experimental-vm-modules node_modules/jest/bin/jest.js --maxWorkers=50% --workerIdleMemoryLimit=512MB
- cd .. && ./node_modules/.bin/mocha --exit
- cd client && REACT_APP_ENV_TEXT=test node --experimental-vm-modules node_modules/jest/bin/jest.js --maxWorkers=50% --workerIdleMemoryLimit=512MB
# - REACT_APP_ENV_TEXT=test node --experimental-vm-modules node_modules/jest/bin/jest.js --maxWorkers=50% --workerIdleMemoryLimit=512MB
- cd ../ec2/scripts && sudo chown root postInstall.sh && sudo chmod 777 postInstall.sh
- cd ../.. && zip -r latest * -qdgds 10m -x "client/node_modules/*" "client/src/*" "client/output/*"
- mkdir -p dpl_cd_upload
Expand Down
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- February 23, 2024 12:02 PST -->
<!-- October 31, 2024 10:07 PST -->
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="%PUBLIC_URL%/apple-touch-icon.png">
Expand Down
2 changes: 1 addition & 1 deletion test/config_auth_spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* ================================= SETUP ================================= */

process.env.NODE_ENV = "testing";
process.env.NODE_CONFIG_ENV = "testing";

const chai = require("chai"),
{ db } = require("../app/config/knex"),
Expand Down