This repository was archived by the owner on May 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
analyticsdataserver/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11language : python
2- python : " 2.7"
3- install :
4- - " pip install coveralls"
5- - " make test.install_elasticsearch"
6- cache : pip
7- # Use docker for builds
8- sudo : false
9- before_script :
10- - make test.run_elasticsearch
11- # Recommended by Travis in order to make sure ElasticSearch
12- # actually starts up. See # https://docs.travis-ci.com/user/database-setup/#ElasticSearch
13- - sleep 10
2+ python :
3+ - " 2.7"
4+
5+ services :
6+ - docker
7+ sudo : required
8+
9+ before_install :
10+ - docker-compose -f .travis/docker-compose-travis.yml up -d
11+
1412script :
15- - make validate
16- - git fetch origin master:refs/remotes/origin/master # https://github.com/edx/diff-cover#troubleshooting
17- - make diff.report
13+ - docker exec analytics_api_testing /edx/app/analytics_api/analytics_api/.travis/run_tests.sh
14+
1815after_success :
19- - coveralls
20- - bash ./scripts/build-stats-to-datadog.sh
16+ - pip install -U codecov
17+ - docker exec analytics_api_testing /edx/app/analytics_api/analytics_api/.travis/run_coverage.sh
18+ - codecov
Original file line number Diff line number Diff line change 1+ version : " 2"
2+
3+ services :
4+ analytics_api :
5+ image : edxops/analytics_api:latest
6+ container_name : analytics_api_testing
7+ volumes :
8+ - ..:/edx/app/analytics_api/analytics_api
9+ command : tail -f /dev/null
10+ environment :
11+ ELASTICSEARCH_LEARNERS_HOST : ' http://es:9200/'
12+ # Pull these from the host environment.
13+ TRAVIS_BRANCH :
14+ TRAVIS_PULL_REQUEST :
15+ DATADOG_API_KEY :
16+ depends_on :
17+ - " es"
18+ es :
19+ image : elasticsearch:1.5.2
20+ container_name : es
Original file line number Diff line number Diff line change 1+ #! /bin/bash -xe
2+ . /edx/app/analytics_api/venvs/analytics_api/bin/activate
3+
4+ cd /edx/app/analytics_api/analytics_api
5+
6+ make diff.report
7+ coverage xml
8+ bash ./scripts/build-stats-to-datadog.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash -xe
2+ . /edx/app/analytics_api/venvs/analytics_api/bin/activate
3+
4+ cd /edx/app/analytics_api/analytics_api
5+
6+ make validate
Original file line number Diff line number Diff line change @@ -91,5 +91,5 @@ will make your contribution more likely to be accepted.
9191
9292.. |build-status | image :: https://travis-ci.org/edx/edx-analytics-data-api.svg?branch=master
9393 :target: https://travis-ci.org/edx/edx-analytics-data-api
94- .. |coverage-status | image :: https://coveralls. io/repos/ edx/edx-analytics-data-api/badge.png?branch= master
95- :target: https://coveralls .io/r /edx/edx-analytics-data-api?branch=master
94+ .. |coverage-status | image :: https://img.shields. io/codecov/c/github/ edx/edx-analytics-data-api/master.svg
95+ :target: https://codecov .io/gh /edx/edx-analytics-data-api
Original file line number Diff line number Diff line change 2626TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
2727
2828# Default elasticsearch port when running locally
29- ELASTICSEARCH_LEARNERS_HOST = 'http://localhost:9223/'
29+ ELASTICSEARCH_LEARNERS_HOST = environ . get ( "ELASTICSEARCH_LEARNERS_HOST" , 'http://localhost:9223/' )
3030ELASTICSEARCH_LEARNERS_INDEX = 'roster_test'
3131ELASTICSEARCH_LEARNERS_UPDATE_INDEX = 'index_update_test'
3232
You can’t perform that action at this time.
0 commit comments