CI: add `v build-tools` task to the tcc job

pull/4923/head
Delyan Angelov 2020-05-17 00:14:06 +03:00
parent 8cbb9e1c1f
commit fb27fe5379
3 changed files with 12 additions and 1 deletions

View File

@ -40,6 +40,8 @@ jobs:
# ./v -silent test-compiler # ./v -silent test-compiler
- name: Fixed tests - name: Fixed tests
run: ./v test-fixed run: ./v test-fixed
- name: Test building v tools
run: ./v build-tools
# - name: Test v binaries # - name: Test v binaries
# run: ./v -silent build-vbinaries # run: ./v -silent build-vbinaries

View File

@ -216,6 +216,10 @@ pub fn vlib_should_be_present(parent_dir string) {
} }
pub fn v_build_failing(zargs string, folder string) bool { pub fn v_build_failing(zargs string, folder string) bool {
return v_build_failing_skipped(zargs, folder, [])
}
pub fn v_build_failing_skipped(zargs string, folder string, skipped []string) bool {
main_label := 'Building $folder ...' main_label := 'Building $folder ...'
finish_label := 'building $folder' finish_label := 'building $folder'
vexe := pref.vexe_path() vexe := pref.vexe_path()
@ -239,6 +243,7 @@ pub fn v_build_failing(zargs string, folder string) bool {
} }
} }
session.files << mains session.files << mains
session.skip_files << skipped
session.test() session.test()
eprintln(session.benchmark.total_message(finish_label)) eprintln(session.benchmark.total_message(finish_label))
return session.failed return session.failed

View File

@ -6,7 +6,11 @@ import testing
fn main() { fn main() {
args := os.args args := os.args
args_string := args[1..].join(' ') args_string := args[1..].join(' ')
if testing.v_build_failing(args_string.all_before('build-tools'), 'cmd/tools') { // TODO: fix cmd/tools/gen_vc.v / vweb too
skips := [
'cmd/tools/gen_vc.v'
]
if testing.v_build_failing_skipped(args_string.all_before('build-tools'), 'cmd/tools', skips) {
exit(1) exit(1)
} }
} }