File: .travis.yml

package info (click to toggle)
sleuthkit 4.10.1+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 17,248 kB
  • sloc: ansic: 142,208; cpp: 50,346; java: 27,140; xml: 2,419; perl: 882; python: 508; makefile: 416; sh: 184
file content (72 lines) | stat: -rw-r--r-- 1,645 bytes parent folder | download
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
language: cpp

matrix:
  include:
  - compiler: clang
    os: linux
    dist: bionic
    sudo: required
    group: edge
  - compiler: gcc
    os: linux
    dist: bionic
    sudo: required
    group: edge
  - compiler: clang
    os: osx
  - compiler: gcc
    os: osx

addons:
  apt:
    update: true
    packages:
    - libafflib-dev
    - libewf-dev
    - libpq-dev
    - autopoint
    - libsqlite3-dev
    - ant
    - libcppunit-dev
    - wget
    - openjdk-8-jdk
  homebrew:
    update: true
    packages:
    - ant
    - wget
    - libewf
    - gettext
    - cppunit
    - afflib
    taps: homebrew/cask-versions
    casks: adoptopenjdk8

python:
  - "2.7"

install:
  - ./travis_install_libs.sh

before_script:
  - if [ $TRAVIS_OS_NAME = linux ]; then 
        sudo update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java;
        sudo update-alternatives --set javac /usr/lib/jvm/java-8-openjdk-amd64/bin/javac;
        export PATH=/usr/bin:$PATH; 
        unset JAVA_HOME;
    fi
  - if [ $TRAVIS_OS_NAME = "osx" ]; then
        export PATH=${PATH}:/usr/local/opt/gettext/bin;
        brew uninstall java --force;
        brew cask uninstall java --force;
    fi

script:
  - javac -version
  - ./bootstrap && ./configure --prefix=/usr && make
  - pushd bindings/java/ && ant -q dist && popd
  - pushd case-uco/java/ && ant -q && popd
  - make check && if [ -f "tests/test-suite.log" ];then cat tests/test-suite.log; fi ; if [ -f "unit_tests/base/test-suite.log" ];then cat unit_tests/base/test-suite.log; fi
  - if test ${TRAVIS_OS_NAME} = "linux"; then
        pushd release && ./release-unix.pl ci && popd;
    fi