File tree 3 files changed +16
-12
lines changed
3 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,10 @@ envfile_testing:
55
55
@if test -f ${ENV_FILE} ; then echo " .env file exists already" ; exit 1; fi
56
56
@mkdir -p $(shell dirname ${ENV_FILE}) && touch ${ENV_FILE}
57
57
@echo SECRET_KEY=\" ${GET_SECRET_KEY} \" >> ${ENV_FILE}
58
- @echo SCANCODEIO_DB_PORT=\" 5433\" >> ${ENV_FILE}
58
+ @echo PACKAGEDB_DB_USER=\" postgres\" >> ${ENV_FILE}
59
+ @echo PACKAGEDB_DB_PASSWORD=\" postgres\" >> ${ENV_FILE}
60
+ @echo SCANCODEIO_DB_USER=\" postgres\" >> ${ENV_FILE}
61
+ @echo SCANCODEIO_DB_PASSWORD=\" postgres\" >> ${ENV_FILE}
59
62
60
63
isort :
61
64
@echo " -> Apply isort changes to ensure proper imports ordering"
@@ -126,7 +129,7 @@ run_map:
126
129
127
130
test :
128
131
@echo " -> Run the test suite"
129
- ${ACTIVATE} DJANGO_SETTINGS_MODULE=purldb_project.settings ${PYTHON_EXE} -m pytest -vvs --ignore matchcode_pipeline --ignore matchcode_project --ignore purldb-toolkit --ignore packagedb/tests/test_throttling.py
132
+ ${ACTIVATE} DJANGO_SETTINGS_MODULE=purldb_project.settings ${PYTHON_EXE} -m pytest -x - vvs --ignore matchcode_pipeline --ignore matchcode_project --ignore purldb-toolkit --ignore packagedb/tests/test_throttling.py
130
133
${ACTIVATE} DJANGO_SETTINGS_MODULE=purldb_project.settings ${PYTHON_EXE} -m pytest -vvs packagedb/tests/test_throttling.py
131
134
${ACTIVATE} DJANGO_SETTINGS_MODULE=matchcode_project.settings ${PYTHON_EXE} -m pytest -vvs matchcode_pipeline
132
135
${ACTIVATE} ${PYTHON_EXE} -m pytest -vvs purldb-toolkit/
Original file line number Diff line number Diff line change 7
7
8
8
resources :
9
9
containers :
10
- - container : postgres
11
- image : postgres
12
- env :
13
- POSTGRES_DB : packagedb
14
- POSTGRES_USER : packagedb
15
- POSTGRES_PASSWORD : packagedb
16
- POSTGRES_INITDB_ARGS : " --encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8"
17
- ports :
18
- - 5432:5432
10
+ - container : postgres
11
+ image : postgres:13
12
+ env :
13
+ POSTGRES_USER : postgres
14
+ POSTGRES_PASSWORD : postgres
15
+ ports :
16
+ - 5432:5432
19
17
20
18
jobs :
21
19
Original file line number Diff line number Diff line change 18
18
test_suite_label : ${{ tsuite.key }}
19
19
test_suite : ${{ tsuite.value }}
20
20
21
+ services :
22
+ postgres : postgres
23
+
21
24
steps :
22
25
- checkout : self
23
26
fetchDepth : 10
31
34
32
35
- script : |
33
36
make dev
34
- make envfile_testing
37
+ make envfile
35
38
sudo mkdir /etc/scancodeio
36
39
sudo cp .env /etc/scancodeio
37
40
displayName: '${{ pyver }} - Configure'
You can’t perform that action at this time.
0 commit comments