-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
32 lines (32 loc) · 848 Bytes
/
.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
language: python
services:
- mongodb # this might not launch fast enough - we could need a delay
- docker
matrix:
include:
- env:
- SAGE=true
- python: "2.7"
- python: "3.6"
- python: "3.7"
install:
- pip install pytest-cov codecov eve
script:
- if [ $SAGE ];
then
docker pull sagemath/sagemath;
docker run -v "$PWD:/home/sage/pypersist" --name="my_image" sagemath/sagemath bash pypersist/tst/sage_test.sh;
retn_code=$?;
echo "Got exit code $retn_code from docker";
docker cp my_image:/home/sage/pypersist-copy/.coverage .;
if [ $retn_code -ne 0 ];
then
exit $retn_code;
fi;
sed -i 's/sage\/pypersist-copy/travis\/build\/mtorpey\/pypersist/g' .coverage;
else
python -m pytest --cov=./pypersist;
fi;
env;
after_success:
- codecov