File tree Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Expand file tree Collapse file tree 2 files changed +18
-11
lines changed Original file line number Diff line number Diff line change 2424 - run : echo "listen_addresses='*'" >> /etc/postgresql/9.5/main/postgresql.conf
2525 - run : sed -i 's/^#*\s*max_connections\s*=.*/max_connections = 10000/' /etc/postgresql/9.5/main/postgresql.conf
2626 - run : (cd .circleci/ && ./doTests.sh << parameters.plugin >>)
27- - run :
28- command : cp ~/supertokens-root/supertokens-core/build/test-results/test/*.xml ~/junit/
29- when : always
30- - when :
31- condition :
32- not :
33- equal : [ << parameters.plugin >>, "sqlite" ]
34- steps :
35- - run : cp ~/supertokens-root/supertokens-<< parameters.plugin >>-plugin/build/test-results/test/*.xml ~/junit/
3627 - store_test_results :
3728 path : ~/junit
3829 - slack/status
Original file line number Diff line number Diff line change 6565 exit 1
6666fi
6767
68+ mkdir -p ~ /junit
69+
6870someTestsRan=false
6971while read -u 10 line
7072do
165167
166168 ./startTestingEnv --cicd
167169
168- if [[ $? -ne 0 ]]
170+ TEST_EXIT_CODE=$?
171+
172+ if [ -d ~ /junit ]
173+ then
174+ echo " Copying output from core"
175+ cp ~ /supertokens-root/supertokens-core/build/test-results/test/* .xml ~ /junit/
176+
177+ if [[ $pluginToTest != " sqlite" ]]
178+ then
179+ echo " Copying output from plugin"
180+ cp ~ /supertokens-root/supertokens-$pluginToTest -plugin/build/test-results/test/* .xml ~ /junit/
181+ fi
182+ fi
183+
184+ if [[ $TEST_EXIT_CODE -ne 0 ]]
169185 then
170186 echo " "
171187 echo " "
197213 echo " "
198214 echo " "
199215
200- cd ../
216+ cd ..
201217 rm -rf supertokens-root
202218
203219 if [[ $currPinnedDb == " sqlite" ]]
You can’t perform that action at this time.
0 commit comments