summary refs log tree commit diff
path: root/.ci/script.sh
blob: 8ad12745b39e02a545aadaee61479bb85cd19353 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash

set -ex

if [ $TRAVIS_OS_NAME == linux ]; then
    QT_PKG=${QT_VERSION:0:2}
    source /opt/qt${QT_PKG}/bin/qt${QT_PKG}-env.sh || true;
fi

make ci

if [ $TRAVIS_OS_NAME == osx ]; then
    make lint;

    if [ $DEPLOYMENT == 1 ] && [ ! -z $TRAVIS_TAG ]; then
        make macos-deploy;
    fi
fi

if [ $TRAVIS_OS_NAME == linux ] && [ $DEPLOYMENT == 1 ] && [ ! -z $TRAVIS_TAG ]; then
    make linux-deploy;
fi