-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
43 lines (42 loc) · 972 Bytes
/
.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
language: c++
sudo: false
jobs:
include:
- stage: compile osx
os: osx
osx_image: xcode10.1
before_install:
- brew install gcc@6
env:
- CMAKE_OPTIONS="-DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
draft: true
skip_cleanup: true
file: build/satsuma2-${TRAVIS_OS_NAME}.tar.gz
# on:
# tags: true
- stage: compile linux
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-6
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- CMAKE_OPTIONS="-DCMAKE_C_COMPILER=gcc-6 -DCMAKE_CXX_COMPILER=g++-6"
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
draft: false
skip_cleanup: true
file: build/satsuma2-${TRAVIS_OS_NAME}.tar.gz
# on:
# tags: true
before_install:
- eval "${MATRIX_EVAL}"
script:
- ".travis/build.sh"