-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
78 lines (72 loc) · 2.21 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
dist: xenial
group: edge
os:
- linux
# travis does not support python on osx yet (https://github.com/travis-ci/travis-ci/issues/4729)
language: python
python:
- "3.7"
- "3.8"
- "3.9"
addons:
apt:
update: true
packages:
- flawfinder
- squashfs-tools
- uuid-dev
- libuuid1
- libssl-dev
- libssl1.0.0
- libarchive-dev
- libgpgme11-dev
- libseccomp-dev
- git
- build-essential
- libtool
- autotools-dev
- automake
- autoconf
- uuid-dev
- libmagickwand-dev
- libmagickcore-extra
- graphviz
- octave
- ruby-full
- r-base
- r-base-dev
- pandoc
before_install:
# singularity
- sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers
- pip install sregistry[all]
# this is to allow sos R_Library target to operate and pass test as well
- sudo chmod -R 777 /usr/local/lib/R/site-library
- R -e 'install.packages(c("digest", "rlang"), repos = "http://cran.us.r-project.org")'
- R -e 'install.packages(c("rmarkdown"), repos = "http://cran.us.r-project.org")'
- pip install pandas numpy
# add docker
- pip install docker pyyaml psutil tqdm fasteners pygments networkx pydot pydotplus graphviz imageio pillow entrypoints jupyter coverage codacy-coverage
- pip install pytest pytest-cov python-coveralls -U
- olddir=`pwd` && cd /tmp && wget https://github.com/singularityware/singularity/archive/2.6.0.tar.gz && tar zxf 2.6.0.tar.gz && cd singularity-2.6.0 && ./autogen.sh && ./configure --prefix=/usr/local && make && sudo make install && cd $olddir
sudo: required
services:
- docker
install:
- pip install .
- pip install sos-pbs
before_script:
- cd test
- sh build_test_docker.sh
script:
# - pytest -v --cov sos --cov-config ../.coveragerc --cov-report=xml
- sh run_tests.sh
after_success:
- coverage combine;
- coveralls
notifications:
email:
recipients:
- ben.bob@gmail.com
on_success: never
on_failure: always