You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+64-43Lines changed: 64 additions & 43 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ compiler:
7
7
- gcc
8
8
- clang
9
9
10
-
dist: xenial
10
+
dist: bionic
11
11
12
12
cache:
13
13
directories:
@@ -21,71 +21,92 @@ env:
21
21
22
22
jobs:
23
23
include:
24
-
- os: linux
25
-
compiler: gcc
26
-
addons:
27
-
apt:
28
-
sources:
29
-
- ubuntu-toolchain-r-test
30
-
packages:
31
-
- gcc-9
32
-
- g++-9
33
-
- libtsan0
34
-
- libasan5
35
-
- liblsan0
36
-
env: MERCURY_BUILD_CONFIGURATION="Tsan"
37
-
- os: linux
38
-
compiler: gcc
39
-
addons:
40
-
apt:
41
-
sources:
42
-
- ubuntu-toolchain-r-test
43
-
packages:
44
-
- gcc-9
45
-
- g++-9
46
-
- libtsan0
47
-
- libasan5
48
-
- liblsan0
49
-
env: MERCURY_BUILD_CONFIGURATION="Asan"
50
-
- os: linux
51
-
compiler: gcc
52
-
addons:
53
-
apt:
54
-
sources:
55
-
- ubuntu-toolchain-r-test
56
-
packages:
57
-
- gcc-9
58
-
- g++-9
59
-
env: MERCURY_DO_COVERAGE="true"
24
+
- os: linux
25
+
addons:
26
+
apt:
27
+
sources:
28
+
- ubuntu-toolchain-r-test
29
+
packages:
30
+
- clang-format-10
31
+
env: CHECK_FORMAT="true"
32
+
- os: linux
33
+
compiler: gcc
34
+
addons:
35
+
apt:
36
+
sources:
37
+
- ubuntu-toolchain-r-test
38
+
packages:
39
+
- gcc-10
40
+
- g++-10
41
+
- libtsan0
42
+
- libasan6
43
+
- libubsan1
44
+
env: MERCURY_BUILD_CONFIGURATION="Tsan"
45
+
- os: linux
46
+
compiler: gcc
47
+
addons:
48
+
apt:
49
+
sources:
50
+
- ubuntu-toolchain-r-test
51
+
packages:
52
+
- gcc-10
53
+
- g++-10
54
+
- libtsan0
55
+
- libasan6
56
+
- libubsan1
57
+
env: MERCURY_BUILD_CONFIGURATION="Asan"
58
+
- os: linux
59
+
compiler: gcc
60
+
addons:
61
+
apt:
62
+
sources:
63
+
- ubuntu-toolchain-r-test
64
+
packages:
65
+
- gcc-10
66
+
- g++-10
67
+
- libtsan0
68
+
- libasan6
69
+
- libubsan1
70
+
env: MERCURY_BUILD_CONFIGURATION="Ubsan"
71
+
- os: linux
72
+
compiler: gcc
73
+
addons:
74
+
apt:
75
+
sources:
76
+
- ubuntu-toolchain-r-test
77
+
packages:
78
+
- gcc-10
79
+
- g++-10
80
+
env: MERCURY_DO_COVERAGE="true"
60
81
61
82
branches:
62
83
only:
63
84
- master
64
85
65
86
before_install:
66
-
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then git fetch origin pull/${TRAVIS_PULL_REQUEST}/head:pr${TRAVIS_PULL_REQUEST}; git checkout pr${TRAVIS_PULL_REQUEST}; fi
87
+
- if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] && [[ "$CHECK_FORMAT" != "true" ]]; then git fetch origin pull/${TRAVIS_PULL_REQUEST}/head:pr${TRAVIS_PULL_REQUEST}; git checkout pr${TRAVIS_PULL_REQUEST}; fi
67
88
- echo "Existing directories in $HOME" && ls $HOME
68
89
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
69
90
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask uninstall --force oclint; fi
70
91
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$CC" == "gcc" ]]; then brew install gcc; fi
71
92
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libfabric; fi
72
93
73
94
install:
74
-
- ./Testing/script/travis_build.sh
95
+
- if [[ "$CHECK_FORMAT" == "true" ]]; then install -D ./Testing/script/git-clang-format $HOME/install/bin/git-clang-format; else ./Testing/script/travis_build.sh; fi
75
96
76
97
before_script:
77
98
- if [ -d "$HOME/install/bin" ]; then ls $HOME/install/bin; fi
0 commit comments