File: .travis.yml

package info (click to toggle)
treesheets 1:1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,952 kB
  • sloc: cpp: 31,134; makefile: 66; ansic: 9
file content (87 lines) | stat: -rw-r--r-- 2,532 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Add [ci skip] to the commit message to prevent test execution
# whitelist
branches:
  only:
    - master
    - testing

notifications:
  slack:
    on_success: change

cache:
  directories:
    - wxWidgets
    - wxWidgets/build_osx

language: cpp
os:
  - linux
  - osx

dist: trusty
sudo: required

compiler: gcc

env:
  - RMRF_WXWIDGETS="" WXLIB="libwxgtk3.1-dev"

matrix:
  allow_failures:
    - os: linux
      env: RMRF_WXWIDGETS="" WXLIB="libwxgtk3.1-dev"
  include:
    - os: linux
      env: RMRF_WXWIDGETS="" WXLIB="libwxgtk3.0-dev"
    - os: osx
      osx_image: xcode7.3
      compiler: gcc clang
      env: RMRF_WXWIDGETS="Y" WXLIB="libwxgtk3.1-dev"
  exclude:
    - os: osx
      compiler: gcc
      env: RMRF_WXWIDGETS="" WXLIB="libwxgtk3.1-dev"

before_install:
  - if  [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
      sudo apt-get update -qq;
    fi

install:
  - if  [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      sudo apt-get install -qq g++-7;
      sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90;
    fi
  - if  [[ -n "$RMRF_WXWIDGETS" ]]; then rm -rf wxWidgets ; fi
  - if  [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      if  [[ ! -d wxWidgets ]]; then
         git submodule init &&
         git submodule add --depth 1 -f https://github.com/wxWidgets/wxWidgets.git;
      fi;
      git submodule update --depth 1 --recursive;
      if  [[ ! -d wxWidgets/build_osx ]]; then
         mkdir -p wxWidgets/build_osx ;
      fi;
      pushd wxWidgets/build_osx &&
      ../configure --enable-unicode --disable-shared --with-osx_cocoa CFLAGS="-arch i386" CXXFLAGS="-arch i386 -stdlib=libc++" CPPFLAGS="-arch i386" LDFLAGS="-arch i386 -stdlib=libc++" OBJCFLAGS="-arch i386" OBJCXXFLAGS="-arch i386 -stdlib=libc++" --with-macosx-sdk=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk --with-macosx-version-min=10.7 CC=clang CXX=clang++ &&
      make -j 4 &&
      sudo make install &&
      popd ;
    else
      if  [[ "$WXLIB" = "libwxgtk3.1-dev" ]]; then
        sudo apt-key adv --fetch-keys http://repos.codelite.org/CodeLite.asc &&
        sudo apt-add-repository 'deb http://repos.codelite.org/wx3.1.0/ubuntu/ trusty universe';
      fi;
      sudo apt-get update &&
      sudo apt-get install -y $WXLIB ;
    fi

script:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      xcodebuild -project osx/TreeSheets/TreeSheets.xcodeproj ;
    else
      cd src &&
      make -j 4;
    fi