forked from arrayfire/forge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.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: GArbo96f+ZHsQI61uvzCSsQg+QTE4WfuAuaiX6Gmb950qhoZacBhyYXro6tst/6W9rb1ZY5bpcmRGm59QzXsY9hdgti2NJy669yB4keRpcBZ5PAWIqB6CtKw9pKtRwRHtm/XD2NejkyZ0xfAFvhIFVhrtFtz3G+dhocOX2HdgpkR7n4QXFaiXpNsVLirtTlFjTSEwlwOIUZ0t9N3AJLdoCIwwPYXzT2WZfzOpvrIr4GleFNVVKa7RQN3jToybnFBpVk6SazHLcemo/cWCrU6VUKRJ6GdHB7Dzrt4aDNGiE/CS5lt290XkSD6pufXHQzjf9C3hpSDxhURZA++Qf+NfKX7nODVaSiQKp3biEdqlHd04nWrwBxMOfNJBR6PYAN+ffes8aS749+F23UG10m0QK/ln8xUoMMeNhk7plKIhl1h7K7T96LJAY6Va5hOZKjEZ3ILdvxJiMAion84Ofe+wy4r+c7QV6Uopry4v4IzDlKUNqqxEUhoP7ub4d5Zo7Dm3zq4KsfrGZ1yFANTKm+O4Ru4se79fOYAWH243vNduL+DPFm24XED1Yykm9LKjZ+JVCwh8Sn+WI5lQIVQgE5Xd4Nq3RohIY69I4mSzdxFboezNVsXZgr3MXZIqE64la5iXZlaSsswIuWfEhU8d53h4c7RwkHqGktB6T0EYm8LDLg=
file_glob: true
file: ./Forge-*.sh
overwrite: true
skip_cleanup: true
draft: true
on:
tags: true
condition: $CC_NAME = gcc-4.8