File: .travis.yml

package info (click to toggle)
fmit 1.2.6-0.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,828 kB
  • sloc: cpp: 9,490; sh: 62; makefile: 15
file content (125 lines) | stat: -rw-r--r-- 4,735 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
language: cpp
sudo: required
dist: xenial

compiler:
- clang
- gcc

os:
  - linux
  - osx

branches:
  only:
  - master

matrix:
    exclude:
        - compiler: clang
          os: linux

addons:
    apt:
        update: true
        sources:
        - ubuntu-sdk-team
        packages:
        - qtbase5-dev
        - qtdeclarative5-dev
        - libqt5webkit5-dev
        - qt5-default
        - qttools5-dev-tools
        - qtmultimedia5-dev
        - libqt5opengl5-dev
        - libqt5svg5-dev
        - libfftw3-dev
        - libpulse-dev
        - libasound2-dev
        - cvs
        - libtool
        - itstool

before_install:
    - git submodule update --init --recursive
    # This checkout if for ensuring that git describe --tags --always gives a proper output
    # otherwise only the commit's sha appear bcs Travis always checkout a commit, never a HEAD
    - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then echo "We're on a HEAD, it's not a Pull Request"; git checkout $TRAVIS_BRANCH; fi
    - git fetch --unshallow
    - git fetch --tags
    - sleep 1
    - export GITVERSION=`git describe --tags --always |sed 's/^v//'`
    - export PROJECTGITVERSION=$GITVERSION
    - echo $PROJECTGITVERSION
    - if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then echo "Building Pull Request $TRAVIS_PULL_REQUEST"; export PROJECTGITVERSION=pr_$TRAVIS_PULL_REQUEST; fi
    - echo $TRAVIS_OS_NAME
    - echo $TRAVIS_COMMIT
    - echo $TRAVIS_TAG
    - export TRAVIS_TAG=`git describe --tags --exact-match HEAD 2>/dev/null`
    - echo $TRAVIS_TAG
    - echo $TRAVIS_BRANCH
    #- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository --yes ppa:beineri/opt-qt521 && sudo apt-get update -qq; fi
    #- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa && sudo apt-get update -qq; fi

install:
    #- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
         #sudo apt-get install qt52base qt52declarative qt52webkit-examples
      #&& sudo apt-get install qt52tools qt52multimedia qt52svg
      #&& sudo apt-get install libfftw3-dev libpulse-dev libasound2-dev
      #&& sudo apt-get install cvs libtool
      #; fi
    #- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
         #sudo apt-get install --yes qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev
      #&& sudo apt-get install --yes qt5-default qttools5-dev-tools qtmultimedia5-dev libqt5svg5-dev
      #&& sudo apt-get install --yes libfftw3-dev libpulse-dev
      #&& sudo apt-get install --yes libasound2-dev
      #&& sudo apt-get install --yes cvs libtool itstool
      #; fi
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
         brew cask uninstall oclint
      && brew install fftw
      && brew install qt5
      && export PATH=/usr/local/opt/qt5/bin:$PATH
      ; fi
    - qmake --version

script:
    - echo $TRAVIS_BUILD_DIR
    #- if [ "$TRAVIS_OS_NAME" = "linux" ]; then source /opt/qt52/bin/qt52-env.sh && qmake "CONFIG+=acs_alsa" fmit.pro; fi
    - if [ "$TRAVIS_OS_NAME" = "linux" ]; then qmake "CONFIG+=acs_alsa" fmit.pro; fi
    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then qmake "FFT_LIBDIR=/usr/local/opt/fftw" fmit.pro; fi
    - make

    - make lrelease
    - ls tr

    - if [ "`uname -m`" = "x86_64" ]; then export ARCH="amd64"; fi
    - if [ "`uname -m`" = "x86" ]; then export ARCH="i386"; fi
    - if [ "$TRAVIS_OS_NAME" = "linux" ]; then
            cd distrib
         && bash package_deb.sh ../fmit
         && export DEBNAME=fmit_$GITVERSION-github_$ARCH.deb
         && export PACKAGENAME=fmit_$PROJECTGITVERSION-github\_$ARCH.deb
         && [ $DEBNAME == $PACKAGENAME ] || mv $DEBNAME $PACKAGENAME
      ; fi

    - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
            macdeployqt fmit.app -dmg
         && sleep 10
         && export PACKAGENAME=fmit_$PROJECTGITVERSION.dmg
         && mv fmit.dmg $PACKAGENAME
      ; fi

    - ls -l $PWD/$PACKAGENAME


deploy:
  skip_cleanup: true
  provider: releases
  api_key:
    secure: K8/6nqC6MKIdijAnLVBsWHJ3WEmzuvHnRWNmvBY4p0aRMIbb0xuU6/piD6HRgJi0QXsktRLwXhM7htNP5MuURDUPBhAnsxhRsjM857gnjVqW+s34O1QL3VwpuBS4Sq4CCf3pyV2SC8mN8B+PI+pmjw7X6XN9E72fHh/uHFC0L0eWByJdlB6UU7T3N15kBjOhYz0plSGA1G2Qr511PjuHAf0Y48bfv61w6vdgMcASvGIhTVORT5YX1RqMnpo7/vy4yGN/uGKrRSuZ7wbOgjFjVTCT1jygMEJ5VsL5tIMK1YlrLvnr/qI7yZL9hmmpMS7Z483XTXAGcGrZrHBYsor9Z8FgPRqQlkdPFcM7rgR6Jp2stwZStS1DkSTSr6LE1nvXA1Ly5V/j+ua6sW8e38dXC+BUvM7MQwcxeYXH1H3ysLs3qZHRlRDS7GxV4e8ecVERGdWWzA2ShxKAkaE+JU10hU7YHv/An5vVjQld/1+ZCs+/PF9udV+oNUEh439dKlNFWM1b9oRJ1tw89Qluo54yQ1+yYTX4AOzt/7ql5TwYnOXYgGZdNVViM18ctuhzJo7pq64dliaNjJjDpbCVCg2iAxWkEzPAWCDBzkUiWC+3Ep3c/IsPBjllY2wO9d29OKfaN2u9IDCyhao4raxmSXOD0/7GyCBZTpuykmvS2aEC4Cg=
  file: $PACKAGENAME
  on:
    repo: gillesdegottex/fmit
    tags: true
    condition: $CC = gcc