Skip to content

Commit f89a3fa

Browse files
Add factory job
1 parent 7f85d63 commit f89a3fa

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.factory/automation.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
5+
config:
6+
version-candidate: VERSION
7+
8+
build:
9+
# quality:
10+
#
11+
correctness:
12+
build:
13+
image: typedb-ubuntu-22.04
14+
command: |
15+
sudo apt update
16+
sudo apt install -y libclang-dev
17+
bazel run @typedb_dependencies//tool/bazelinstall:remote_cache_setup.sh
18+
bazel build //...
19+
20+
release:
21+
filter:
22+
owner: typedb
23+
branch: [master]
24+
25+
deployment:
26+
deploy-github:
27+
image: typedb-ubuntu-22.04
28+
command: |
29+
export PYENV_ROOT="/opt/pyenv"
30+
pyenv install 3.7.9
31+
pyenv global 3.7.9
32+
sudo unlink /usr/bin/python3
33+
sudo ln -s $(which python3) /usr/bin/python3
34+
sudo ln -s /usr/share/pyshared/lsb_release.py /opt/pyenv/versions/3.7.9/lib/python3.7/site-packages/lsb_release.py
35+
python3 -m pip install certifi
36+
export DEPLOY_GITHUB_TOKEN=$REPO_GITHUB_TOKEN
37+
bazel run --define version=$(cat VERSION) //:deploy-github -- $FACTORY_COMMIT

0 commit comments

Comments
 (0)