This repository has been archived by the owner on Mar 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
52 lines (44 loc) · 1.55 KB
/
.travis.yml
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
sudo: required
dist: trusty
language: cpp
compiler:
# - clang
- gcc
os:
- linux
# - osx
env:
- BUILD_MODE=release
- BUILD_MODE=debug
# - "PATH=/home/travis/gopath/bin:$PATH"
before_install:
# - go get github.com/ddliu/go-httpclient
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo apt-add-repository --yes ppa:beineri/opt-qt57-trusty && sudo apt-get -y update -qq && sudo apt-get -y install qt57-meta-full p7zip && source /opt/qt57/bin/qt57-env.sh; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install qt5; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then export PATH=$(brew --prefix)/opt/qt5/bin:$PATH; fi
# - go get gopkg.in/qml.v1
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" -a "${CXX}" = "clang++" ]; then exit; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" -a "${CXX}" = "g++" ]; then export MKSPEC=linux-g++; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" -a "${CXX}" = "clang++" ]; then export MKSPEC=macx-clang; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" -a "${CXX}" = "g++" ]; then exit; fi
script:
# - cd HttpAPI
# - ./build.sh
# - cd ..
- git submodule update --init --recursive
- echo "Building for ${MKSPEC} in ${BUILD_MODE} mode..."
- mkdir build
- cd build
- qmake ../Israfil.pro -spec ${MKSPEC} CONFIG+=${BUILD_MODE}
- make
- ls -lRa .
- mv bin Israfil
deploy:
provider: releases
api_key: "7022646b188aa7ad9b00e50bf3577cad82fc955e"
file: "Israfil.zip"
skip_cleanup: true
on:
tags: true