Skip to content

Commit bacfba6

Browse files
committed
add temp job
1 parent 4649482 commit bacfba6

File tree

1 file changed

+113
-93
lines changed

1 file changed

+113
-93
lines changed

.circleci/config.yml

Lines changed: 113 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -6,111 +6,131 @@ version: 2.1
66
workflows:
77
ci:
88
jobs:
9-
- lint
10-
- test:
11-
matrix:
12-
parameters:
13-
# TODO: Revisit why pyenv doesn't recognize 3.12
14-
python_version: ["3.10"] # ["3.8", "3.9", "3.10", "3.11"] # "3.12"
15-
arangodb_config: ["single"] # ["single", "cluster"]
16-
arangodb_license: ["community"] #["community", "enterprise"]
17-
arangodb_version: ["latest"] #["3.10.10", "3.11.4", "latest"]
9+
- temp
10+
# - lint
11+
# - test:
12+
# matrix:
13+
# parameters:
14+
# # TODO: Revisit why pyenv doesn't recognize 3.12
15+
# python_version: ["3.10"] # ["3.8", "3.9", "3.10", "3.11"] # "3.12"
16+
# arangodb_config: ["single"] # ["single", "cluster"]
17+
# arangodb_license: ["community"] #["community", "enterprise"]
18+
# arangodb_version: ["latest"] #["3.10.10", "3.11.4", "latest"]
1819

1920
jobs:
20-
lint:
21-
docker:
22-
- image: python:latest
23-
steps:
24-
- checkout
25-
- run:
26-
name: Install Dependencies
27-
command: pip install .[dev]
28-
29-
- run:
30-
name: Run black
31-
command: black --check --verbose --diff --color --config=pyproject.toml ./arango ./tests/
32-
33-
- run:
34-
name: Run flake8
35-
command: flake8 ./arango ./tests
36-
37-
- run:
38-
name: Run isort
39-
command: isort --check ./arango ./tests
40-
41-
- run:
42-
name: Run mypy
43-
command: mypy ./arango
44-
45-
test:
46-
parameters:
47-
python_version:
48-
type: string
49-
arangodb_config:
50-
type: string
51-
arangodb_license:
52-
type: string
53-
arangodb_version:
54-
type: string
55-
# TODO: Reconsider using a docker image instead of a machine
56-
# i.e cimg/python:<< parameters.python_version >>
21+
temp:
5722
docker:
5823
- image: cimg/python:<< parameters.python_version >>
59-
# machine:
60-
# image: ubuntu-2204:current
24+
6125
steps:
6226
- checkout
6327

6428
- setup_remote_docker:
65-
docker_layer_caching: true
29+
docker_layer_caching: true
6630

67-
- run:
68-
name: Set Up ArangoDB
69-
command: |
70-
chmod +x starter.sh
71-
./starter.sh << parameters.arangodb_config >> << parameters.arangodb_license >> << parameters.arangodb_version >>
72-
73-
- restore_cache:
74-
key: pip-and-local-cache
75-
76-
# TODO: Revisit this bottleneck
77-
# - run:
78-
# name: Setup Python
79-
# command: |
80-
# pyenv --version
81-
# pyenv install -f << parameters.python_version >>
82-
# pyenv global << parameters.python_version >>
31+
- run: docker create --name adb -p 8529:8529 -e ARANGO_ROOT_PASSWORD= arangodb/arangodb
8332

84-
- run:
85-
name: "Install Dependencies"
86-
command: pip install -e .[dev]
33+
- run: docker start adb
8734

8835
- run: docker ps -a
89-
90-
- run: docker logs arango
91-
92-
- run:
93-
name: "Run pytest"
94-
command: |
95-
mkdir test-results
96-
97-
args=("--junitxml=test-results/junit.xml" "--log-cli-level=DEBUG" "--host" "localhost" "--port=8529")
98-
if [ << parameters.arangodb_config >> = "cluster" ]; then
99-
args+=("--cluster" "--port=8539" "--port=8549")
100-
fi
101-
102-
if [ << parameters.arangodb_license >> = "enterprise" ]; then
103-
args+=("--enterprise")
104-
fi
105-
106-
echo "Running pytest with args: ${args[@]}"
107-
pytest --cov=arango --cov-report=xml "${args[@]}"
108-
109-
- store_artifacts:
110-
path: test-results
111-
112-
- store_test_results:
113-
path: test-results
36+
37+
38+
39+
40+
# lint:
41+
# docker:
42+
# - image: python:latest
43+
# steps:
44+
# - checkout
45+
# - run:
46+
# name: Install Dependencies
47+
# command: pip install .[dev]
48+
49+
# - run:
50+
# name: Run black
51+
# command: black --check --verbose --diff --color --config=pyproject.toml ./arango ./tests/
52+
53+
# - run:
54+
# name: Run flake8
55+
# command: flake8 ./arango ./tests
56+
57+
# - run:
58+
# name: Run isort
59+
# command: isort --check ./arango ./tests
60+
61+
# - run:
62+
# name: Run mypy
63+
# command: mypy ./arango
64+
65+
# test:
66+
# parameters:
67+
# python_version:
68+
# type: string
69+
# arangodb_config:
70+
# type: string
71+
# arangodb_license:
72+
# type: string
73+
# arangodb_version:
74+
# type: string
75+
# # TODO: Reconsider using a docker image instead of a machine
76+
# # i.e cimg/python:<< parameters.python_version >>
77+
# docker:
78+
# - image: cimg/python:<< parameters.python_version >>
79+
# # machine:
80+
# # image: ubuntu-2204:current
81+
# steps:
82+
# - checkout
83+
84+
# - setup_remote_docker:
85+
# docker_layer_caching: true
86+
87+
# - run:
88+
# name: Set Up ArangoDB
89+
# command: |
90+
# chmod +x starter.sh
91+
# ./starter.sh << parameters.arangodb_config >> << parameters.arangodb_license >> << parameters.arangodb_version >>
92+
93+
# - restore_cache:
94+
# key: pip-and-local-cache
95+
96+
# # TODO: Revisit this bottleneck
97+
# # - run:
98+
# # name: Setup Python
99+
# # command: |
100+
# # pyenv --version
101+
# # pyenv install -f << parameters.python_version >>
102+
# # pyenv global << parameters.python_version >>
103+
104+
# - run:
105+
# name: "Install Dependencies"
106+
# command: pip install -e .[dev]
107+
108+
# - run: docker ps -a
109+
110+
# - run: docker logs arango
111+
112+
# - run:
113+
# name: "Run pytest"
114+
# command: |
115+
# mkdir test-results
116+
117+
# args=("--junitxml=test-results/junit.xml" "--log-cli-level=DEBUG" "--host" "localhost" "--port=8529")
118+
# if [ << parameters.arangodb_config >> = "cluster" ]; then
119+
# args+=("--cluster" "--port=8539" "--port=8549")
120+
# fi
121+
122+
# if [ << parameters.arangodb_license >> = "enterprise" ]; then
123+
# args+=("--enterprise")
124+
# fi
125+
126+
# echo "Running pytest with args: ${args[@]}"
127+
# pytest --cov=arango --cov-report=xml "${args[@]}"
128+
129+
# - store_artifacts:
130+
# path: test-results
131+
132+
# - store_test_results:
133+
# path: test-results
114134

115135
# - run:
116136
# name: Upload to Coveralls

0 commit comments

Comments
 (0)