File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 1
1
language : rust
2
2
3
+ sudo : false
4
+
3
5
rust :
4
6
- stable
5
7
- beta
13
15
global :
14
16
- RUSTFLAGS="-C link-dead-code"
15
17
16
- before_install :
17
- - sudo apt-get update
18
-
19
18
addons :
20
19
apt :
21
20
packages :
@@ -34,10 +33,9 @@ after_success: |
34
33
cd build &&
35
34
cmake .. &&
36
35
make &&
37
- sudo make install &&
36
+ make install DESTDIR=../../kcov-build &&
38
37
cd ../.. &&
39
38
rm -rf kcov-master &&
40
- for file in target/debug/examplerust-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
39
+ for file in target/debug/examplerust-*[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/ kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
41
40
bash <(curl -s https://codecov.io/bash) &&
42
41
echo "Uploaded code coverage"
43
-
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ of Rust you desire.
67
67
``` yml
68
68
language : rust
69
69
70
+ sudo : false
71
+
70
72
rust :
71
73
- stable
72
74
- beta
80
82
global :
81
83
- RUSTFLAGS="-C link-dead-code"
82
84
83
- before_install :
84
- - sudo apt-get update
85
-
86
85
addons :
87
86
apt :
88
87
packages :
@@ -101,10 +100,10 @@ after_success: |
101
100
cd build &&
102
101
cmake .. &&
103
102
make &&
104
- sudo make install &&
103
+ make install DESTDIR=../../kcov-build &&
105
104
cd ../.. &&
106
105
rm -rf kcov-master &&
107
- for file in target/debug/<PROJECT-NAME>- *[^\.d]; do mkdir -p "target/cov/$(basename $file)"; kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
106
+ for file in target/debug/examplerust- *[^\.d]; do mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/ kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; done &&
108
107
bash <(curl -s https://codecov.io/bash) &&
109
108
echo "Uploaded code coverage"
110
109
` ` `
You can’t perform that action at this time.
0 commit comments