forked from openedx-unsupported/ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (47 loc) · 1.46 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
language: python
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/ &&
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
make $TARGETS
"
matrix:
include:
- python: 2.7
env:
TESTNAME=quality-and-js
TARGETS="PYTHON_ENV=py27 requirements.js check_translations_up_to_date validate_translations clean_static static quality validate_js"
- python: 2.7
env: TESTNAME=test-python TARGETS="PYTHON_ENV=py27 requirements.js clean_static static validate_python"
- python: 3.5
env:
TESTNAME=quality-and-js-.3.5
TARGETS="PYTHON_ENV=py35 requirements.js check_translations_up_to_date validate_translations clean_static static quality validate_js"
- python: 3.5
env: TESTNAME=test-python-3.5 TARGETS="PYTHON_ENV=py35 requirements.js clean_static static validate_python"
after_success:
- pip install -U codecov
- docker exec ecommerce_testing /edx/app/ecommerce/ecommerce/.travis/run_coverage.sh
- codecov