Skip to content

Commit e5993c7

Browse files
authored
Merge pull request #2035 from codalab/circle_ci_config
Circle Ci - Reorganised circle ci config file
2 parents dbd3f6b + 54f4802 commit e5993c7

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.circleci/config.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,49 @@ jobs:
1515
#
1616
# In another terminal:
1717
# $ open vnc://0.0.0.0:5900
18-
name: Download and start X for VNC viewing
18+
name: "Setup: Enable VNC access"
1919
command: |
2020
sudo apt-get update
2121
sudo apt-get install -y x11vnc
2222
# x11vnc -forever -nopw
2323
background: true
2424

25-
- run: cp .env_circleci .env
25+
- run:
26+
name: "Setup: Copy environment variables"
27+
command: cp .env_circleci .env
2628

2729

2830
- run:
29-
name: Making gross directories for minio, cannot be made by docker for some reason
31+
name: "Setup: Create directories for MinIO (cannot be made by docker for some reason)"
3032
command: |
3133
sudo mkdir -p var/minio/public
3234
sudo mkdir -p var/minio/private
3335
3436
- run:
35-
name: Build containers and collect static
37+
name: "Docker: Build containers and collect static files"
3638
command: |
3739
docker compose -f docker-compose.yml -f docker-compose.selenium.yml up -d
3840
docker compose -f docker-compose.yml -f docker-compose.selenium.yml exec django python manage.py collectstatic --noinput
3941
40-
- run: docker-compose exec django flake8 src/
41-
- run: docker pull codalab/codalab-legacy:py37 # not available without "not e2e" tests as they pull ahead of time
42-
- run: docker pull codalab/codalab-legacy:py3 # not available without "not e2e" tests as they pull ahead of time
43-
- run: docker pull vergilgxw/autotable:v2 # not available without "not e2e" tests as they pull ahead of time
42+
- run:
43+
name: "Lint: Check code style with flake8"
44+
command: docker-compose exec django flake8 src/
45+
46+
47+
- run:
48+
name: "Docker: Pull required images"
49+
# not available without "not e2e" tests as they pull ahead of time
50+
command: |
51+
docker pull codalab/codalab-legacy:py37
52+
docker pull codalab/codalab-legacy:py3
53+
docker pull vergilgxw/autotable:v2
4454
4555
- run:
46-
name: pytest
56+
name: "Tests: Run unit/integration tests (excluding e2e)"
4757
command: docker compose -f docker-compose.yml -f docker-compose.selenium.yml exec django py.test src/ -m "not e2e"
4858

4959
- run:
50-
name: e2e tests
60+
name: "Tests: Run end-to-end (E2E) tests"
5161
command: docker compose -f docker-compose.yml -f docker-compose.selenium.yml exec django py.test src/tests/functional/ -m e2e
5262
no_output_timeout: 60m
5363

0 commit comments

Comments
 (0)