File: .travis.yml

package info (click to toggle)
pbbam 0.7.4+ds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,384 kB
  • ctags: 5,236
  • sloc: cpp: 48,068; python: 1,444; xml: 852; ansic: 820; makefile: 175; sh: 52; cs: 12
file content (64 lines) | stat: -rw-r--r-- 1,709 bytes parent folder | download | duplicates (2)
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
language: cpp
compiler:
  - gcc

before_install:

  # Travis's default installs of gcc, boost, & cmake currently lag behind the minimums we need.
  # So we need to manually setup them up. 
  #
  #  - gcc 4.8 (current default on Travis is 4.7, which is no good for C++11 work)
  #  - boost 1.55
  #  - cmake 3.x
  
  # add external repos
  - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test           # gcc
  - sudo add-apt-repository -y ppa:boost-latest/ppa                  # boost
  - sudo add-apt-repository -y ppa:george-edison55/precise-backports # cmake
  
  # remove existing cmake install
  - sudo apt-get remove -qq cmake cmake-data
  - sudo apt-get autoremove -qq
  
  # update apt 
  - sudo apt-get update -y -qq

  # install
  - sudo apt-get install -y -qq g++-4.8 boost1.55 cmake-data cmake 
  
  # make sure we're using new gcc tools
  - sudo update-alternatives --install /usr/bin/g++  g++  /usr/bin/g++-4.8  90
  - sudo update-alternatives --install /usr/bin/gcc  gcc  /usr/bin/gcc-4.8  90 
  - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 90

  # prep zlib
  - sudo apt-get install -y -qq zlib1g-dev

  # prep htslib
  - "cd .. && git clone https://github.com/PacificBiosciences/htslib.git && cd htslib && make && sudo make install; cd $TRAVIS_BUILD_DIR"

  # prep GoogleTest 
  - sudo apt-get install -y -qq libgtest-dev

before_script:
  # run cmake
  - mkdir build 
  - cd build
  - cmake .. -DGTEST_SRC_DIR=/usr/src/gtest -DCMAKE_BUILD_TYPE=Debug
    
script:
  # build & test
  - make -j 3
  - make test

branches:
  only:
    - master
    
notifications:
  recipients:
    - dbarnett@pacb.com
  email:
    on_success: change
    on_failure: always