-
Notifications
You must be signed in to change notification settings - Fork 86
/
.travis.yml
63 lines (58 loc) · 1.63 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
59
60
61
62
63
dist: trusty
sudo: required
##
## environment variables
##
## @COVERALLS_PARALLEL, update coveralls only when branch merged
##
env:
global:
- COVERALLS_PARALLEL=true
##
## implement coveralls.io webhook
##
## https://github.com/lemurheavy/coveralls-public/issues/1123#issuecomment-390699100
## https://github.com/lemurheavy/coveralls-public/issues/1123#issuecomment-391030777
##
notifications:
webhooks: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN
matrix:
include:
## lint sourcecode
- language: python
before_install:
- chmod u+x test/linter
install:
- ./test/linter install
script:
- ./test/linter run; LINT_EXIT=$?
- if [ "$LINT_EXIT" -gt 0 ]; then
echo "Lint failed ($LINT_EXIT)" && exit 1;
fi
## frontend tests: implement jest + enzyme
- language: node_js
node_js: 8
install:
- cd "$TRAVIS_BUILD_DIR"/src/jsx && npm install
script:
- npm run test && npm run report:coveralls
- cd "$TRAVIS_BUILD_DIR"
##
## backend tests: implement pytest
##
## Note: more information regarding the coverage-coverall implementation:
##
## https://github.com/pytest-dev/pytest-cov/issues/146
##
- language: python
before_install:
- chmod u+x test/backend
install:
- pip install python-coveralls==2.9.0
script:
- ./test/backend --norecycle --verbose; BACKEND_EXIT=$?
after_success:
- if [ "$BACKEND_EXIT" -gt 0 ]; then
echo 'Backend tests failed' && exit 1;
fi
- coverage combine && coveralls