forked from LMFDB/lmfdb
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
83 lines (73 loc) · 2.35 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: sage
sudo: false
dist: trusty
# blocklist
branches:
except:
- web
- dev
addons:
apt:
packages:
# needed for sage
- binutils
- gcc
- g++
- gfortran
- make
- perl
- tar
- git
- openssl
- libssl-dev
# needed for pyflakes
- python-pip
# to run nosetests in parallel
- parallel
install:
# assert parallel
- parallel --version
# install the latest pyflakes
- pip install pyflakes --user
# install the latest coveralls
- pip install coveralls --user
- export PATH=${HOME}/.local/bin/:${PATH}
# install SAGE with GAP already built in
# see: /~https://github.com/edgarcosta/binary-pkg
- export SAGE_VERSION=8.8
- export SAGE_DIR=${HOME}/SageMath
- export SAGE="${SAGE_DIR}/sage"
- export SAGE_INSTALL_GCC=no
- export MAKE='make -j4'
- wget --no-verbose http://grace.mit.edu/sage-lmfdb/sage-${SAGE_VERSION}-Ubuntu_14.04-x86_64.tar.bz2
# travis_wait extends the default 10 minute timeout to 30 minutes
# what is the load on the server
- uptime
- travis_wait 40 time tar xf sage-${SAGE_VERSION}-Ubuntu_14.04-x86_64.tar.bz2 -C ${HOME}
# trigger the patch once script
- ${SAGE} --version > patch_once_log
# assert that we have GAP
- ${SAGE} -python -c 'from sage.all import gap;G = gap.TransitiveGroup(9, 2); print G'
# install LMFDB requirements
- ${SAGE} -pip install -r requirements.txt
before_script:
# assert that devmirror.lmfdb.xyz accepts our connections
- nc -vz devmirror.lmfdb.xyz 5432
# how much free ram do we have
- free -m
# what is the load on the server
- uptime
script:
# run pyflakes
- pyflakes . > pyflakeslog
- if [[ $(wc -l < pyflakeslog) != 0 ]]; then echo "ERROR pyflakes failed!"; cat pyflakeslog; else echo "PASS pyflakes is happy!"; fi
# Check that pytest is installed
- ${SAGE} -sh -c "pytest --version"
# This runs without fail
- ${SAGE} -sh -c "pytest --verbose -s --cov=lmfdb"
after_failure:
- if [[ $(wc -l < pyflakeslog) != 0 ]]; then echo "ERROR pyflakes failed!"; cat pyflakeslog; else echo "PASS pyflakes is happy!"; fi
after_success:
- ls -a
#- COVERALLS_PARALLEL=true coveralls
- coveralls