Skip to content

Commit f6318b7

Browse files
Merge branch 'master' into master
2 parents b902c91 + 1197274 commit f6318b7

231 files changed

Lines changed: 14402 additions & 915 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.all-contributorsrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.coveralls.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,29 @@ eslint config file.
33
*/
44

55
{
6-
"env": {
7-
"es6": 1,
8-
"browser": 1
9-
},
6+
"env": {
7+
"es6": 1,
8+
"browser": 1
9+
},
1010

11-
"globals": {
12-
"angular":1,
13-
"jquery": 1,
14-
"$": 1,
15-
"_": 1,
16-
"moment": true
17-
},
11+
"globals": {
12+
"angular": "readonly",
13+
"jquery": "readonly",
14+
"$": "readonly",
15+
"_": "readonly",
16+
"moment": "readonly"
17+
},
1818

19-
"extends": "eslint:recommended",
19+
"extends": "eslint:recommended",
2020

21-
"rules": {
22-
"no-console": "warn",
23-
"semi": ["error",
24-
"always", {
25-
"omitLastInOneLineBlock": true
26-
}
27-
],
28-
},
21+
"rules": {
22+
"no-console": "warn",
23+
"semi": [
24+
"error",
25+
"always",
26+
{
27+
"omitLastInOneLineBlock": true
28+
}
29+
]
30+
}
2931
}

.npmrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# npm configuration for CI builds
2+
fetch-timeout=600000
3+
fetch-retry-mintimeout=20000
4+
fetch-retry-maxtimeout=120000
5+
progress=false
6+
loglevel=warn
7+
maxsockets=50
8+
prefer-offline=true
9+
audit=false
10+
fund=false

.readthedocs.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"
7+
8+
python:
9+
install:
10+
- requirements: requirements/readthedocs.txt
11+
12+
sphinx:
13+
configuration: docs/source/conf.py
14+
15+
formats:
16+
- epub
17+
- pdf

.readthedocs.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.travis.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
script:
4040
# Build steps
4141
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || travis_terminate 1; fi
42-
- docker-compose --profile worker --profile statsd build || travis_terminate 1;
42+
- docker-compose --profile worker_py3_7 --profile worker_py3_8 --profile worker_py3_9 --profile statsd build || travis_terminate 1;
4343

4444
# Frontend Tests
45-
- docker-compose run nodejs bash -c "gulp dev && karma start --single-run && gulp staging" || travis_terminate 1;
45+
- docker-compose run nodejs bash -c "npm install && gulp dev && karma start --single-run --reporters=junit,coverage && gulp staging" || travis_terminate 1;
4646

4747
# Backend Tests
4848
- docker-compose run -e DJANGO_SETTINGS_MODULE=settings.test django python manage.py flush --noinput || travis_terminate 1;
49-
- docker-compose run -e DJANGO_SETTINGS_MODULE=settings.test django pytest --cov . --cov-config .coveragerc || travis_terminate 1;
49+
- docker-compose run -e DJANGO_SETTINGS_MODULE=settings.test django pytest --cov . --cov-config .coveragerc --cov-report=xml:coverage-backend.xml --junitxml=junit-backend.xml -o junit_family=legacy || travis_terminate 1;
5050

5151
# Check Code Quality
5252
- docker-compose run -e DJANGO_SETTINGS_MODULE=settings.dev -e VERBOSE=1 django bash -c "
@@ -63,8 +63,20 @@ jobs:
6363
echo 'All code quality checks passed!'" || travis_terminate 1;
6464

6565
after_success:
66-
- bash <(curl -s https://codecov.io/bash)
67-
- coveralls --rcfile=.coveragerc
66+
# Install Codecov CLI
67+
- pip install codecov-cli
68+
69+
# Upload backend test results to Codecov
70+
- codecovcli do-upload --report-type test_results --file junit-backend.xml
71+
72+
# Upload frontend test results to Codecov (if available)
73+
- codecovcli do-upload --report-type test_results --file coverage/frontend/TEST-*.xml || true
74+
75+
# Upload backend coverage to Codecov
76+
- bash <(curl -s https://codecov.io/bash) -f coverage-backend.xml -F backend
77+
78+
# Upload frontend coverage to Codecov
79+
- bash <(curl -s https://codecov.io/bash) -f coverage/frontend/lcov.info -F frontend
6880

6981
- stage: Package & Deployment
7082
name: Push & Deploy Services
@@ -81,4 +93,4 @@ notifications:
8193
email:
8294
on_success: change
8395
on_failure: always
84-
slack: cloudcv:gy3CGQGNXLwXOqVyzXGZfdea
96+
slack: cloudcv:gy3CGQGNXLwXOqVyzXGZfdea

README.md

Lines changed: 17 additions & 108 deletions
Large diffs are not rendered by default.

apps/challenges/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class ChallengeAdmin(ImportExportTimeStampedAdmin):
5858
"workers",
5959
"task_def_arn",
6060
"github_repository",
61+
"github_branch",
6162
)
6263
list_filter = (
6364
ChallengeFilter,
@@ -75,6 +76,7 @@ class ChallengeAdmin(ImportExportTimeStampedAdmin):
7576
"creator__team_name",
7677
"slug",
7778
"github_repository",
79+
"github_branch",
7880
)
7981
actions = [
8082
"start_selected_workers",

0 commit comments

Comments
 (0)