forked from openedx-unsupported/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
58 lines (51 loc) · 1.42 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: python
dist: focal
branches:
only:
- master
sudo: required
services:
- docker
cache:
- pip
- directories:
- node_modules
- ecommerce/static/bower_components
addons:
apt:
packages:
- lcov
before_install:
- docker-compose -f ./.travis/docker-compose-travis.yml up -d
install:
- docker exec -t ecommerce_testing bash -c "
cd /edx/app/ecommerce/ecommerce/ &&
python3 -m pip install tox
"
script:
- docker exec -t -e TRAVIS=1 ecommerce_testing bash -c "
cd /edx/app/ecommerce/ecommerce/ &&
PATH=\$PATH:/edx/app/ecommerce/nodeenvs/ecommerce/bin:/snap/bin
DJANGO_ENV=$DJANGO_ENV make $TARGETS
"
matrix:
include:
- python: 3.8
env:
DJANGO_ENV=django22
TESTNAME=quality-and-js
TARGETS="PYTHON_ENV=py38 requirements.js check_translations_up_to_date validate_translations clean_static static quality validate_js check_keywords"
- python: 3.8
env:
DJANGO_ENV=django22
TESTNAME=test-python
TARGETS="PYTHON_ENV=py38 requirements.js clean_static static validate_python"
after_success:
- pip3 install -U codecov
- docker exec ecommerce_testing /edx/app/ecommerce/ecommerce/.travis/run_coverage.sh
- codecov
- python: 3.8
env:
DJANGO_ENV=django22
TESTNAME=test-python
TARGETS="PYTHON_ENV=py38 requirements.js clean_static static acceptance"