This repository has been archived by the owner on Sep 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
97 lines (93 loc) · 3.84 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
language: c
sudo: false
env:
global:
# Intel Parallel Studio
- secure: "pRthq4b59pqfe333JklO6VAuRR2OTfecg0X2cAznmzsmNj8AF/hL1HQCoUScPwSwLBfVCfaEK/sT1jXCG3nz1/TQtwtVuarQuylSzxnqJZJEubDOhpT8nNnvAqVvgGzsq7z4FgBUmk+Nv6nrFkf8FGqfgRY3/djeogmNWs8FYRPXeqnBUTix5mlTY1rim940RdTzipo8IlXhpux9Dwjr6U+jKaKDEqq3t5AMqmBAcF5KulNJhCbSQhIu3hNs7hhMGPyxbbX9FfYtBQ45IU87FqSOfUfp2jOmw+h1N6XMIlqXTtshR3IditvXkhtOY9Aw6QE39oX1ivCFzqnk2iFmNArWnOHIltTT72zKuwURX2WQU6y7FfsF1NrtGijHJsfqieRDgBWnfoNFm9nCJQSv6g/tFXsT95dmvipzvzqSGpkArTc6kWBkFnfKy9FfbLnHm9V2L+PFI5HFXNZaEobmM4FKHSGxkQNwBoXufnmCWV2ZIf3uLfwERqL92Sas2lkoOV/mEznI30AeowTnCG1+cUvFRZOrv+5UFUuRSQi83DBFzsXQJjoYEnezA9kVWSVAuamBKRiOZ5YvLngiRJPmIdUC3m4N/6zOK68ouCJy06S/LzrFkWNMS74zwYI1ICiJt7Yt4Khzl35KoP+C1NOLuylj1OyIipActGoOH8z71a4="
matrix:
include:
##
# Test basic installation with different Travis environments
##
# Ubuntu 12.04 container build
- os: linux
sudo: false
env: COMPONENTS=icc
# Ubuntu 12.04 VM
- os: linux
sudo: required
env: COMPONENTS=icc
# Ubuntu 14.04 VM
- os: linux
sudo: required
dist: trusty
env: COMPONENTS=icc
##
# Test individual components
##
# IPP
- os: linux
sudo: false
env: COMPONENTS="icc,ipp"
# TBB
- os: linux
sudo: false
env: COMPONENTS="icc,tbb"
# DAAL
- os: linux
sudo: false
env: COMPONENTS="icc,daal"
# MPI
- os: linux
sudo: false
env: COMPONENTS="icc,mpi"
# Fortran
- os: linux
sudo: false
env: COMPONENTS="icc,ifort"
# Fortran + MKL
- os: linux
sudo: false
env: COMPONENTS="icc,ifort,mkl"
# Fortran + MPI
- os: linux
sudo: false
env: COMPONENTS="icc,ifort,mpi"
# # Everything (for debugging without taxing Travis too heavily)
# - os: linux
# sudo: false
# env: COMPONENTS="icc,ifort,mpi,daal,ipp,tbb,mkl"
before_install:
- ./install-icc.sh --components "${COMPONENTS}"
- source ~/.bashrc
script:
# C compiler
- '[[ "${COMPONENTS}" != *"icc"* ]] || (icc -std=c99 test/test.c -o test/test-c99 && ./test/test-c99)'
# C++ compiler
- '[[ "${COMPONENTS}" != *"icc"* ]] || (icpc -std=c++11 test/test.cxx -o test/test-c++11 && ./test/test-c++11)'
# Cilk support
- '[[ "${COMPONENTS}" != *"icc"* ]] || (icc -std=c99 test/test-cilk.c -o test/test-cilk && ./test/test-cilk)'
# Fortran 90 compiler
- '[[ "${COMPONENTS}" != *"ifort"* ]] || (ifort -std08 -fpp test/test.f90 -o test/test-f90 && ./test/test-f90)'
# MPI-3
- '[[ "${COMPONENTS}" != *"mpi"* ]] || (mpiicc -std=c99 test/test-mpi.c -o test/test-mpi && ./test/test-mpi)'
# IPP
- '[[ "${COMPONENTS}" != *"ipp"* ]] || (icc -std=c99 -ipp test/test-ipp.c -o test/test-ipp && ./test/test-ipp)'
# DAAL
- '[[ "${COMPONENTS}" != *"daal"* ]] || (icpc -std=c++11 -daal test/test-daal.cxx -o test/test-daal && ./test/test-daal)'
# TBB
- '[[ "${COMPONENTS}" != *"tbb"* ]] || (icpc -std=c++11 -tbb test/test-tbb.cxx -o test/test-tbb && ./test/test-tbb)'
# MKL CBLAS
- '[[ "${COMPONENTS}" != *"mkl"* ]] || (icc -std=c99 -mkl test/test-mkl.c -o test/test-mkl && ./test/test-mkl)'
# Fortran MKL
- '[[ "${COMPONENTS}" != *"ifort"* || "${COMPONENTS}" != *"mkl"* ]] || (ifort -std08 -mkl test/test-mkl.f90 -o test/test-mkl-fortran && ./test/test-mkl-fortran)'
# Fortran MPI-2
- '[[ "${COMPONENTS}" != *"ifort"* || "${COMPONENTS}" != *"mkl"* || "${COMPONENTS}" != *"mpi"* ]] || (mpiifort -std08 test/test-mpi.f90 -o test/test-mpi-fortran && ./test/test-mpi-fortran)'
# Fortran 2008 MPI-3
- '[[ "${COMPONENTS}" != *"ifort"* || "${COMPONENTS}" != *"mkl"* || "${COMPONENTS}" != *"mpi"* ]] || (mpiifort -std08 test/test-mpi-f08.f90 -o test/test-mpi-f08 && ./test/test-mpi-f08)'
after_script:
- '[[ ! -z "${INTEL_INSTALL_PATH}" ]] && uninstall_intel_software'
notifications:
email:
on_success: change
on_failure: change