forked from rlane/ubpf
-
Notifications
You must be signed in to change notification settings - Fork 136
/
.travis.yml
43 lines (43 loc) · 1.48 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
language: cpp
compiler:
- gcc
os: linux
dist: xenial
jobs:
include:
- name: python 2.7-amd64
env: PYTHON=python2
arch: amd64
before_install:
- sudo apt-get update
- sudo apt-get -y install python python-pip python-setuptools python-wheel
after_success:
- coveralls --gcov-options '\-lp' -i $PWD/vm/ubpf_vm.c -i $PWD/vm/ubpf_jit_x86_64.c -i $PWD/vm/ubpf_loader.c
- name: python-2.7-arm64
env: PYTHON=python2
arch: arm64
before_install:
- sudo apt-get update
- sudo apt-get -y install python python-dev python-pip python-setuptools python-wheel libffi-dev libssl-dev
install:
- $PYTHON -m pip install --upgrade "pip<21.0"
- $PYTHON -m pip install -r requirements.txt
- $PYTHON -m pip install "cryptography<3.3"
- $PYTHON -m pip install "pyopenssl<21.0.0"
- $PYTHON -m pip install cpp-coveralls
after_success:
- coveralls --gcov-options '\-lp' -i $PWD/vm/ubpf_vm.c -i $PWD/vm/ubpf_jit_arm64.c -i $PWD/vm/ubpf_loader.c
- name: python 3.5
env: PYTHON=python3
before_install:
- sudo apt-get update
- sudo apt-get -y install python3 python3-pip python3-setuptools python3-wheel
# command to install dependencies
install:
- $PYTHON -m pip install --upgrade "pip<21.0"
- $PYTHON -m pip install -r requirements.txt
- $PYTHON -m pip install cpp-coveralls
# command to run tests
script:
- make -C vm COVERAGE=1
- nosetests -v