Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11_abseil
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11_abseil
Commits
95ec0027
Commit
95ec0027
authored
Jan 05, 2022
by
pybind11_abseil authors
Committed by
Copybara-Service
Jan 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal change
PiperOrigin-RevId: 419851159
parent
519fc543
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
scripts/build_and_run_tests.sh
+11
-8
No files found.
scripts/build_and_run_tests.sh
View file @
95ec0027
...
@@ -10,20 +10,23 @@ set -e # exit when any command fails
...
@@ -10,20 +10,23 @@ set -e # exit when any command fails
MYDIR
=
"
$(
dirname
"
$(
realpath
"
$0
"
)
"
)
"
MYDIR
=
"
$(
dirname
"
$(
realpath
"
$0
"
)
"
)
"
BAZEL
=
$(
which bazel
)
BAZEL
=
$(
which bazel
||
true
)
if
[[
-z
$BAZEL
||
!
-x
$BAZEL
]]
if
[[
-z
$BAZEL
||
!
-x
$BAZEL
]]
then
then
echo
-e
-n
'\e[1m\e[93m'
echo
-n
'Bazel not found (bazel (https://bazel.build/) is needed to '
echo
-n
'Bazel not found (bazel (https://bazel.build/) is needed to '
echo
'compile & test). Exiting...'
echo
-n
'compile & test). '
echo
-e
'Exiting...\e[0m'
exit
1
exit
1
fi
fi
VIRTUAL_ENV_BINARY
=
$(
which virtualenv
)
VIRTUAL_ENV_BINARY
=
$(
which virtualenv
||
true
)
if
[[
-z
$VIRTUAL_ENV_BINARY
||
!
-x
$VIRTUAL_ENV_BINARY
]]
if
[[
-z
$VIRTUAL_ENV_BINARY
||
!
-x
$VIRTUAL_ENV_BINARY
]]
then
then
echo
-e
-n
'\e[1m\e[93m'
echo
-n
'virtualenv command not found '
echo
-n
'virtualenv command not found '
echo
-n
'(try `python3 -m pip install virtualenv`, possibly as root). '
echo
-n
'(try `python3 -m pip install virtualenv`, possibly as root). '
echo
'Exiting...
'
echo
-e
'Exiting...\e[0m
'
exit
1
exit
1
fi
fi
...
@@ -36,11 +39,11 @@ then
...
@@ -36,11 +39,11 @@ then
fi
fi
echo
-e
"
\e
[33mRunning
${
0
}
from
$PWD
\e
[0m"
echo
-e
"
\e
[33mRunning
${
0
}
from
$PWD
\e
[0m"
PYBIN
=
`
which python3
`
PYBIN
=
$(
which python3
||
true
)
if
[
!
-x
$PYBIN
]
if
[
[
-z
$PYBIN
||
!
-x
$PYBIN
]
]
then
then
echo
-e
"
\e
[1m
\e
[93m
$PYBIN
not found! Skip build and test.
\e
[0m"
echo
-e
'\e[1m\e[93mpython3 not found! Skip build and test.\e[0m'
continue
exit
1
fi
fi
PYVERSION
=
$(
$PYBIN
-c
'import sys; print(".".join(map(str, sys.version_info[:3])))'
)
PYVERSION
=
$(
$PYBIN
-c
'import sys; print(".".join(map(str, sys.version_info[:3])))'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment