-
Notifications
You must be signed in to change notification settings - Fork 47
/
.travis.yml
66 lines (59 loc) · 2.24 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: cpp
notifications:
email: false
sudo: required
services:
- docker
matrix:
include:
- os: linux
env: CC_NAME=gcc-4.8 CXX_NAME=g++-4.8
- os: linux
env: CC_NAME=gcc-5 CXX_NAME=g++-5
- os: linux
env: CC_NAME=gcc CXX_NAME=g++
- os: linux
env: CC_NAME=clang-3.9 CXX_NAME=clang++-3.9
- os: linux
env: CC_NAME=clang-4.0 CXX_NAME=clang++-4.0
- os: linux
env: CC_NAME=clang-5.0 CXX_NAME=clang++-5.0
- os: linux
env: CC_NAME=clang-6.0 CXX_NAME=clang++-6.0
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
docker run -d --name forge-pr -v $(pwd):/travis pradeepgarigipati/forge-ubuntu:bionic tail -f /dev/null;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
docker ps;
fi
script:
- if [[ ( "$TRAVIS_OS_NAME" == "linux" ) && ( "$TRAVIS_BRANCH" == "$TRAVIS_TAG" )]];
then
docker exec -t forge-pr bash -c "cd
/travis; CC=/usr/bin/$CC_NAME CXX=/usr/bin/$CXX_NAME cmake -DCMAKE_BUILD_TYPE:STRING=Release
. && make -j2 install";
elif [[ "$TRAVIS_OS_NAME" == "linux" ]];
then
docker exec -t forge-pr bash -c "cd
/travis; CC=/usr/bin/$CC_NAME CXX=/usr/bin/$CXX_NAME cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo
. && make -j2 install";
fi
- if [[ ( "$TRAVIS_OS_NAME" == "linux" ) && ( "$TRAVIS_BRANCH" == "$TRAVIS_TAG" )]];
then
docker exec -t forge-pr bash -c "cd /travis; cpack -G STGZ;";
fi
deploy:
provider: releases
api_key:
secure: VzpHIUrDZqQIdaJZPwJpccc8ene42K71UpG2NmaVwgmFu9s+S19Xt7ejVnov+jHMzW0VrZhm5YAEeYfBE+qmUSvGOKEfCSt3yAAbQUaAZE6IreJoduSnOfJNzqFNtR5C2cEnLywSQoIX5uCLSI0u/6tipjYB34bh/cUv0Wb2aqnWHjdrHNpJwdDjEYuWPFrYK1KeTV2YqEV8AZeuVPY9p7tDpXNeP7Isec7qxT/Zji2phoRoIKcacdHCkR+ycNZ5umBYJhSL7wrlsVBYwTcHnPaRXvTUpQo1RlFDBcRsqqPu1LWtkcIOkYBv9HsSapcpvoN81LVejs8KdBwqYipIDXsjWr0dOatIFRxIltC7A/UOCRPjgFG+TvDknrNzWrqdcbD9Y2vRl2MDsiVWyvc2XM/sxxH+htdRd6hmclhaycwAA+0G9OlzP/XAENoCF+RnMYUidFjq7GFZ3RUvd8P1/Pf/4ZVl2LznHbgNNWY4+hNe7l+UL6zo9zNOxhWMYTMvaPok7yT1n4WGrNcwqt/3Gvu9sQyJDQxBcLFPBEFr43wbz1Trer7YSMUA9G7LlZWbfYdH4yFCIsOS1CwchU03JZ1BAT2YIPPksXUFtgd8p/4VUln62m/Y2xWUubJI6StElgZ40W01jisFgbnxUHXaRdNLYiVzh3kEropLmWB7CoI=
file_glob: true
file: ./Forge-*.sh
overwrite: true
skip_cleanup: true
draft: true
on:
tags: true
condition: $CC_NAME = gcc-4.8