-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathfinal-local-config.yml
More file actions
92 lines (82 loc) · 2.91 KB
/
final-local-config.yml
File metadata and controls
92 lines (82 loc) · 2.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: 2.1
jobs:
build:
docker:
- image: ruby:3.2.8-slim
environment:
RAILS_ENV: test
NODE_ENV: test
DATABASE_URL: postgresql://postgres:password@localhost/test_db
REDIS_URL: redis://localhost:6379
# Disable SSL verification for local testing
SSL_VERIFY_NONE: 1
GIT_SSL_NO_VERIFY: true
steps:
- run:
name: Fix SSL certificates and update packages
command: |
# Update CA certificates first
apt-get update
apt-get install -y ca-certificates
update-ca-certificates
# Install system dependencies
apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
postgresql-client \
curl \
wget \
gnupg2 \
software-properties-common \
git \
nodejs \
npm
- checkout
- run:
name: Configure Git and Bundler for SSL
command: |
# Configure git to not verify SSL (for local testing only)
git config --global http.sslverify false
# Configure bundler to not verify SSL
bundle config set --global ssl_verify_mode 0
bundle config set --global silence_root_warning 1
- run:
name: Bundle install
command: |
# Set Ruby SSL verification to none for local testing
export SSL_CERT_FILE=/dev/null
export SSL_CERT_DIR=/dev/null
export RUBY_SSL_CERT_FILE=/dev/null
export RUBY_SSL_CERT_DIR=/dev/null
bundle install
- run:
name: NPM install
command: |
# Disable npm SSL verification for local testing
npm config set strict-ssl false
npm config set registry http://registry.npmjs.org/
npm install
- run:
name: Show installed versions
command: |
echo "Ruby version: $(ruby -v)"
echo "Node version: $(node -v)"
echo "NPM version: $(npm -v)"
echo "Bundle version: $(bundle -v)"
- run:
name: List what tests would run
command: |
echo "=== Tests that would run in full environment ==="
echo "Database tests: (requires running PostgreSQL)"
echo " - bundle exec rspec"
echo " - bundle exec rails test"
echo ""
echo "JavaScript tests: (if any)"
echo " - npm test"
echo ""
echo "Linting:"
echo " - bundle exec rubocop"
echo " - npm run lint"
echo ""
echo "Note: Actual test execution requires database/services setup"
echo "This local execution demonstrates environment preparation"