Skip to content

Commit 9acb89f

Browse files
Add sudoku test to automation.yml
1 parent 807b101 commit 9acb89f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.factory/automation.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,20 @@ build:
6969
sudo systemd-run ./dist/typedb-all-linux/typedb server
7070
sleep 60
7171
bazel test //telecom/phone_calls/python:test --test_output=errors
72+
test-sudoku:
73+
image: vaticle-ubuntu-22.04
74+
command: |
75+
export PYENV_ROOT="/opt/pyenv"
76+
pyenv install 3.7.12
77+
pyenv global 3.7.12
78+
sudo unlink /usr/bin/python3
79+
sudo ln -s $(which python3) /usr/bin/python3
80+
sudo ln -s /usr/bin/python3 /usr/bin/python
81+
sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.7.12/lib/python3.7/site-packages/lsb_release.py
82+
bazel run //:typedb-extractor -- dist/typedb-all-linux
83+
sudo systemd-run ./dist/typedb-all-linux/typedb server
84+
sleep 60
85+
bazel test //games/sudoku:test --test_output=errors
7286
test-xcom:
7387
image: vaticle-ubuntu-22.04
7488
command: |
@@ -159,6 +173,20 @@ build:
159173
sudo systemd-run ./dist/typedb-all-linux/typedb server
160174
sleep 60
161175
bazel test //telecom/phone_calls/python:test --test_output=errors --runs_per_test=20 --jobs=1
176+
benchmark-sudoku-test:
177+
image: vaticle-ubuntu-22.04
178+
command: |
179+
export PYENV_ROOT="/opt/pyenv"
180+
pyenv install 3.7.12
181+
pyenv global 3.7.12
182+
sudo unlink /usr/bin/python3
183+
sudo ln -s $(which python3) /usr/bin/python3
184+
sudo ln -s /usr/bin/python3 /usr/bin/python
185+
sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.7.12/lib/python3.7/site-packages/lsb_release.py
186+
bazel run //:typedb-extractor -- dist/typedb-all-linux
187+
sudo systemd-run ./dist/typedb-all-linux/typedb server
188+
sleep 60
189+
bazel test //games/sudoku:test --test_output=errors --runs_per_test=20 --jobs=1
162190
benchmark-xcom-test:
163191
image: vaticle-ubuntu-22.04
164192
command: |

0 commit comments

Comments
 (0)