summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 9d248efc8842ea8c53f9ef8182572da814301c31 (plain)
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
language: cpp

os:
  - linux
  - osx

compiler:
  - gcc
  - clang

before_install:
  - QtMkspec=$CC
  - $CC --version

install
  - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
      sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
      && sudo apt-add-repository -y ppa:beineri/opt-qt541
      && sudo apt-get -qq update
      && sudo apt-get -qq install g++-4.8 libc6-i386 qt54tools qt54svg qt54webkit
      && export CXX="g++-4.8"
      && export CC="gcc-4.8"
      ;
    else
         brew update
      && brew unlink cmake
      && brew install cmake
      && brew install qt5
      && chmod -R 755 /usr/local/opt/qt5/*
      ;
    fi

script:
  - cd qtpass
  - qmake -v
  - qmake -spec linux-$QtMkspec -Wall qtpass.pro
  - make -j$(nproc)

notifications:
  
  irc: 
    channels:
      - "chat.freenode.net#IJhack"
    on_success: change
    on_failure: always

matrix:
  allow_failures:
    - os: osx