forked from openwpm/OpenWPM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (56 loc) · 1.5 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
os: linux
dist: bionic
env:
# See, https://docs.travis-ci.com/user/speeding-up-the-build/
# We need a balanced distribution of the tests
# Once we add and remove tests, this distribution may become unbalanced.
# Feel free to move tests around to make the running time of the jobs
# as close as possible.
- TESTS=test_[a-e]*
- TESTS=test_[f-h]*
- TESTS=test_[i-r,t-z]*
# test_simple_commands.py is slow due to parametrization.
- TESTS=test_[s]*
- TESTS=webextension
git:
depth: 3
before_install:
- "export DISPLAY=:99.0"
- "export BOTO_CONFIG=/dev/null" # https://github.com/travis-ci/travis-ci/issues/7940
install:
- ./scripts/install-miniconda.sh
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- ./install.sh
- conda activate openwpm
before_script:
- if [[ "$TESTS" != "webextension" ]]; then
pre-commit run --all;
fi
script:
- if [[ "$TESTS" == "webextension" ]]; then
cd automation/Extension/webext-instrumentation;
npm test;
else
cd test;
python -m pytest --cov=../automation --cov-report=xml $TESTS -s -v --durations=10;
codecov -f coverage.xml;
fi
after_success:
- if [[ "$TESTS" == "webextension" ]]; then
npm run cov:check;
npm run cov:send;
fi
jobs:
include:
- language:
python:
env:
- TESTS="Docker"
services:
- docker
before_install:
before_script:
install:
script:
- docker build -f Dockerfile -t openwpm .
- ./scripts/deploy-to-dockerhub.sh