-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
.travis.yml
157 lines (146 loc) · 5.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
---
language: generic
os: osx
env:
global:
- CACHE="${HOME}/.local"
- MPICH_VER="3.2"
- MPICH_URL_HEAD="https://www.mpich.org/static/downloads/${MPICH_VER}"
- MPICH_URL_TAIL="mpich-${MPICH_VER}.tar.gz"
- MPICH_GCC6_BOT_URL_HEAD="https://github.com/sourceryinstitute/OpenCoarrays/files/979804/"
- MPICH_GCC7_BOT_URL_HEAD="https://github.com/sourceryinstitute/OpenCoarrays/files/976779/"
- MPICH_BOT_URL_TAIL="mpich-3.2_3.yosemite.bottle.1.tar.gz"
- BUILD_TYPES="Release Debug RelWithDebInfo CodeCoverage"
matrix:
- GCC=6 OSX_PACKAGES="gcc@6 shellcheck" BUILD_TYPE="InstallScript"
- GCC="6 7" OSX_PACKAGES="gcc gcc@6 cmake shellcheck" BUILD_TYPE="cmake"
matrix:
fast_finish: true
include:
- &ubuntu
os: linux
sudo: false
dist: trusty
env:
- GCC=6
cache:
apt: true
directories:
- "$CACHE"
addons:
apt:
sources: &linuxsrcs
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages: &gcc6pkgs
- gcc-6
- gfortran-6
- g++-6
- cmake
-
<<: *ubuntu
env:
- GCC=7
addons:
apt:
sources: *linuxsrcs
packages: &gcc7pkgs
- gcc-7
- gfortran-7
- g++-7
- cmake
-
<<: *ubuntu
env:
- BUILD_TYPE="InstallScript"
GCC=6
addons:
apt:
sources: *linuxsrcs
packages:
- gcc-6
- gfortran-6
- g++-6
- &linux_allowed_failure
<<: *ubuntu
env:
- GCC=7
OPENCOARRAYS_DEVELOPER=ON
addons:
apt:
sources: *linuxsrcs
packages: *gcc7pkgs
allow_failures:
- *linux_allowed_failure
before_install:
- source developer-scripts/travis/before_install.all.sh
- developer-scripts/travis/before_install.${TRAVIS_OS_NAME}.sh
install:
- pwd
- developer-scripts/travis/install.${TRAVIS_OS_NAME}.sh
script:
- pwd
- developer-scripts/travis/test-script.${BUILD_TYPE:-cmake}.sh
after_script:
- find . -name '*.gcno' -print
- for version in ${GCC}; do bash <(curl -s https://codecov.io/bash) -x $(type -P gcov-${GCC}) ; done
- |
if [[ "${TRAVIS_TAG}" ]]; then
if [[ "v${TRAVIS_TAG}" != "v$(sed -n '/[0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,\}/{s/^\([^.]*\)\([0-9]\{1,\}\(\.[0-9]\{1,\}\)\{1,\}\)\(.*\)/\2/p;q;}' .VERSION)" ]]; then
echo "ERROR: You are trying to tag a new release but have a version missmatch in \`.VERSION\`"
false # throw an error
fi
fi
# before_deploy:
# - git archive -v --prefix "OpenCoarrays-${TRAVIS_TAG}/" -o "OpenCoarrays-${TRAVIS_TAG}.tar.gz" ${TRAVIS_TAG}
# - |
# echo '# To verify cryptographic checksums `shasum -c opencoarrays-'"${TRAVIS_TAG}"'-SHA256.txt` on Mac OS X,' > "opencoarrays-${TRAVIS_TAG}-SHA256.txt
# echo '# `sha256sum -c opencoarrays-'"${TRAVIS_TAG}"'-SHA256.txt` on Linux.' >> "opencoarrays-${TRAVIS_TAG}-SHA256.txt
# if [[ $(uname -s) == Darwin ]]; then
# shasum -a 256 "OpenCoarrays-${TRAVIS_TAG}.tar.gz" >> "opencoarrays-${TRAVIS_TAG}-SHA256.txt
# else
# sha256sum "OpenCoarrays-${TRAVIS_TAG}.tar.gz" >> "opencoarrays-${TRAVIS_TAG}-SHA256.txt
# fi
# - |
# openssl aes-256-cbc -K ${encrypted_ef4535c39461_key} -iv ${encrypted_ef4535c39461_iv} -in subkey-328B3A0E-secret.asc.enc -out ./subkey-328B3A0E-secret.asc -d
# gpg --allow-secret-key-import --import ./subkey-328B3A0E-secret.asc && rm subkey-328B3A0E-secret.asc
# rm subkey-328B3A0E-secret.* || true
# unset encrypted_ef4535c39461_key || true
# unset encrypted_ef4535c39461_iv || true
# gpg --armor --detach-sign -u 328B3A0E --comment 'Mac users can use GPGTools - https://gpgtools.org' \
# --comment "Download Izaak Beekman's GPG public key from your" \
# --comment 'trusted key server or from' \
# --comment 'https://izaakbeekman.com/izaak.pubkey.txt' \
# --comment 'Next add it to your GPG keyring, e.g.,' \
# --comment '`curl https://izaakbeekman.com/izaak.pubkey.txt | gpg --import`' \
# --comment "Make sure you have verified that the release archive's" \
# --comment 'SHA256 checksum matches the provided' \
# --comment "opencoarrays-${TRAVIS_TAG}-SHA256.txt and ensure that this file" \
# --comment "and it's signature are in the same directory. Then" \
# --comment 'verify with:' \
# --comment '`gpg --verify opencoarrays-'"${TRAVIS_TAG}"'-SHA256.txt.asc`' \
# "opencoarrays-${TRAVIS_TAG}-SHA256.txt"
# deploy:
# provider: releases
# api_key:
# secure: lBj4VgKhU74xfzPc0CDIji6cFrN/xEQIHLHjMcnDPWEF5JQe79aunMS5qiYu5ttve6khGI1WMFEe7clUO3TXiDUPyRMS4M8B2q3fuvUIsIbYgWcKq7ut+x6+dEQDj4DE3yWpPb8IDugWFp4vno1eQ2Rid1yr6Vn+rjnbE2i6z5SkXPnIv1ziQ9G+TF4ChUA8IOd1T78gJmML86P0rbt6nW8eVuJbza2y1ggHAY//q/b6rrbOFw5PqiOBqZ/BRrKJ5d2U2mvsoZtNn4OYyXw4eKEvNDIydwaIZROXfPRmN9zJ5G7+01QA5jlXpq17KfPBr7MXkn7nrQ5q9Z2ji4hRHk/AFzM/etfl1k4WCshYs13NlORpnU0vZtCMmmmsXWxj2kpsOHLWZQKdUAPs3olMPIG6aVnO5Abk1vrVSNy/ZeknbBTKCGScET1qRSaj6d43ynBwGkqHgaJdLBAwGe0Dpap6SsLGsAg56ZqHTngGlXB1KsbJKMkUsSC5RAgEuh9m55nsMaRlTYTrv+YADAQts7lV8yMCciMeJlrd3EYryyn4ZY1O82eOofhZZ5vQUktbXHtg6YnzguFwQyn+9yY/CQfi/vu2Aoq79NJEO/9UJ82ogn6gOoIebzb0xgIONjw4M68luR2U1CXtibzSYKWLGTeOj43khqZdbOpp6xncIv0=
# file:
# - "OpenCoarrays-${TRAVIS_TAG}.tar.gz"
# - "opencoarrays-${TRAVIS_TAG}-SHA256.txt"
# - "opencoarrays-${TRAVIS_TAG}-SHA256.txt.asc"
# skip_cleanup: true
# on:
# tags: true
# repo: sourceryinstitute/opencoarrays
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/93dbafbdf76c1732a623
- https://webhooks.gitter.im/e/935231573bf1b9f2fe40
on_success: change # options: [always|never|change]
on_failure: always
on_start: always
email:
on_success: change
on_failure: always
on_start: never