File tree Expand file tree Collapse file tree 6 files changed +16
-5
lines changed Expand file tree Collapse file tree 6 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhisto
46
46
&& chown -R $USERNAME /commandhistory \
47
47
&& echo "$SNIPPET" >> "/home/$USERNAME/.bashrc"
48
48
49
- # Set the user to vscode
49
+ # Git completion
50
+ RUN echo ". /usr/share/bash-completion/completions/git" >> "/home/$USERNAME/.bashrc"
51
+
52
+ # Set the user to vscode
50
53
USER $USERNAME
51
54
52
55
# Set the workspace directory
Original file line number Diff line number Diff line change 29
29
" --security-opt" ,
30
30
" seccomp=unconfined"
31
31
],
32
- "remoteUser" : " vscode"
32
+ "remoteUser" : " vscode" ,
33
+ "postStartCommand" : " ./tools/generate-compilation-database.sh $PWD build-code-quality Debug tests"
33
34
}
Original file line number Diff line number Diff line change 29
29
],
30
30
"clang-tidy-on-active-file.autoRunOnSave" : true ,
31
31
"clang-tidy-on-active-file.configPath" : " /workspace/.clang-tidy" ,
32
+ "clang-tidy-on-active-file.optionalArgs" : " -p=build-code-quality" ,
32
33
"C_Cpp.default.configurationProvider" : " ms-vscode.cmake-tools" ,
33
34
"C_Cpp.codeAnalysis.clangTidy.enabled" : true ,
34
35
"C_Cpp.codeAnalysis.clangTidy.useBuildPath" : true ,
117
118
"typeinfo" : " cpp" ,
118
119
"semaphore" : " cpp" ,
119
120
"iostream" : " cpp"
120
- },
121
+ }
121
122
}
Original file line number Diff line number Diff line change 1
1
# ZIP
2
2
3
- [ ![ build] ( https://github.com/andreiavrammsd/cpp-zip/workflows/build/badge.svg )] ( https://github.com/andreiavrammsd/cpp-zip/actions )
3
+ [ ![ build] ( https://github.com/andreiavrammsd/cpp-zip/workflows/build/badge.svg )] ( https://github.com/andreiavrammsd/cpp-zip/actions/workflows/test.yml )
4
+   ;  ; [ ![ build] ( https://github.com/andreiavrammsd/cpp-zip/workflows/release/badge.svg )] ( https://github.com/andreiavrammsd/cpp-zip/actions/workflows/release.yml )
4
5
  ;  ; [ ![ codecov] ( https://codecov.io/github/andreiavrammsd/cpp-zip/graph/badge.svg?token=TBV8ID8QK0 )] ( https://codecov.io/github/andreiavrammsd/cpp-zip )
5
6
  ;  ; [ ![ documentation] ( https://img.shields.io/badge/msd::zip-Documentation-4EC820?labelColor=5E5E5E )] ( https://andreiavrammsd.github.io/cpp-zip/ )
6
7
Original file line number Diff line number Diff line change 23
23
24
24
./tools/generate-compilation-database.sh ${workspace} ${build_path} ${build_type} ${build_target}
25
25
26
+ # Build
27
+ cwd=$PWD
28
+ cd ${build_path}
29
+ cmake --build . --config ${build_type} --target ${build_target}
30
+ cd ${cwd}
31
+
26
32
# Find files
27
33
files=$( if [ $event == " pull_request" ]; then
28
34
git diff --name-only origin/" ${default_branch} " ...HEAD include
Original file line number Diff line number Diff line change @@ -19,6 +19,5 @@ cmake ${workspace} \
19
19
-DCMAKE_BUILD_TYPE=${build_type} \
20
20
-DENABLE_TESTS=ON \
21
21
-DENABLE_BENCHMARKS=ON
22
- cmake --build . --config ${build_type} --target ${build_target}
23
22
24
23
cd ${cwd}
You can’t perform that action at this time.
0 commit comments