This repository has been archived by the owner on Nov 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.67 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
language: c
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- TARGET="linux"
- os: osx
osx_image: xcode10.1
env:
# - MATRIX_EVAL="brew install gcc@7 && CC=gcc-7 && CXX=g++-7"
- TARGET="osx"
before_script:
- if [ "$TARGET" = "osx" ]; then brew update && brew install ruby && brew install
rename; fi
- eval "${MATRIX_EVAL}"
script:
- if [ "$TARGET" = "linux" ]; then echo "===> Building for linux..." && cd "$TRAVIS_BUILD_DIR"
&& mkdir build && cd build && cmake .. && make; fi
- if [ "$TARGET" = "osx" ]; then echo "===> Building for macosx..." && cd "$TRAVIS_BUILD_DIR"
&& mkdir build && cd build && cmake .. && make; fi
- eval "rename 's/dialog/dialog-${TARGET}/' *dialog*"
- cd ${TRAVIS_BUILD_DIR}/build/ && ls
deploy:
provider: releases
api_key:
secure: jPoVAbyfvyCVvPIeOISYB479t2mt1E9HRikhxX9+kvnawob6gH6I2+R6CEFDtKMR05sapjo5bguj8/kWMwSbQ+y7QvoDUtF2a6HZewtWpZigiuLDZXiENQMTscCQcnLfG1miX0hjtyZBcYrAWewUQyXfHCHu0uIAOEMn7U0RWWZJ4rUsNptJnN3mBk5iPWdUjkvXHWOAoWCm6RzYK0fp2GqWROBm0PsW1n4BtaMlU/6892JkUOJSlFDWQajGW2yFyEL6SjkrcWOC8twALzYjcimp0hYrgurvg6iZOwApDt/tR2oTOgsLjpTYIOdRL6d9krKzCCjCBdWyvHlaSELA+WZgENmayE5UxmtRJcXSbCsr8Oqq4Ob2V+4T60B6JSrZ6TwiwWbjVBkOVmdVxjFeJTmx39A1pKBxgUyFa5vQTcJRqLXntjsIrXUiILyXBvUF24KNih/0pG2YM0LAhmQKqNgicR/hctu5B0qlvBqLvB+C+6M+vyvjmfb5VgCOj2qWvwbdx+PRVhUkmFDUMi3ED2vIMSgY21vzE/1GCL9pVKNIrl7ts2YWoGkim5yW9TzLzwmU0vsXGU5ZyS/29LvrSgzQ61NV5/0YO5gNoxiq5edgTdpRYgM7Ua2jLQZU7Vop6IVZYI16UIQs9vM5AKO4tiKDrbg51+eRTezBZ0QlpT8=
file_glob: true
file:
- ${TRAVIS_BUILD_DIR}/build/*dialog-*
skip_cleanup: true