-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (44 loc) · 1.38 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
dist: trusty
notifications:
email: false
slack: wtsi-cgpit:ptUMR1tkNyZJYd9TpGoss8WR
env:
global:
- CC_TEST_REPORTER_ID=747d8a7fc1700cea5c7e07aba5de7a70acd6a695c7ff481852bbcf95c3f1086c
addons:
apt:
packages:
- build-essential # everything
- zlib1g-dev # many
- libcurl4-openssl-dev # many
- unzip # kentools/pcap
- libcairo2-dev # give png.h for kentsrc and used by R in later components
- time
- curl
before_install: # installs R3.3
- sudo add-apt-repository "deb https://cran.ma.imperial.ac.uk/bin/linux/ubuntu trusty/"
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
- sudo apt-get update
- sudo apt-get install r-base
language: python
python:
- "3.6.1"
install:
- pip install -r requirements.txt
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- cd Rsupport
- which R
- which python
- sudo ./setupR.sh $HOME/pyCRISPRcleanR-opt
- cd ../
- export R_LIBS_USER=$HOME/pyCRISPRcleanR-opt/R-lib
- Rscript -e '.libPaths()'
- pytest --cov-report term --cov-report xml --cov-fail-under=50 --cov=pyCRISPRcleanR
- coverage xml
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
sudo: false