Skip to content

Commit

Permalink
fix: circle ci unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Nov 20, 2024
1 parent a976233 commit 10d2af0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .circleci/config_continue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ jobs:
- run: (cd .circleci/ && ./markDevTagAsTestNotPassed.sh)
test-unit:
docker:
- image: rishabhpoddar/supertokens_python_driver_testing
- image: python:<< parameters.python-version >>
resource_class: large
parameters:
cdi-version:
type: string
python-version:
type: string
steps:
- checkout
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
- run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
- run: (cd .circleci/ && ./installJava.sh)
- run: make dev-install
- run: (cd .circleci/ && ./doUnitTests.sh << parameters.cdi-version >>)
- slack/status
Expand Down Expand Up @@ -314,6 +315,7 @@ workflows:
matrix:
parameters:
cdi-version: placeholder
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
- test-backend-sdk-testing:
requires:
- test-dev-tag-as-not-passed
Expand Down
10 changes: 10 additions & 0 deletions .circleci/installJava.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

wget https://download.java.net/java/GA/jdk15.0.1/51f4f36ad4ef43e39d0dfdbaf6549e32/9/GPL/openjdk-15.0.1_linux-x64_bin.tar.gz
mkdir /usr/java
mv openjdk-15.0.1_linux-x64_bin.tar.gz /usr/java
cd /usr/java
tar -xzvf openjdk-15.0.1_linux-x64_bin.tar.gz
rm openjdk-15.0.1_linux-x64_bin.tar.gz
ln -s /usr/java/jdk-15.0.1/bin/java /usr/bin/java
ln -s /usr/java/jdk-15.0.1/bin/javac /usr/bin/javac

0 comments on commit 10d2af0

Please sign in to comment.