Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enstools-encoding
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
w2w
enstools-encoding
Commits
cca6692a
Commit
cca6692a
authored
2 years ago
by
Oriol Tintó
Browse files
Options
Downloads
Patches
Plain Diff
Adding run_tests.sh
parent
4bea59aa
No related branches found
No related tags found
No related merge requests found
Pipeline
#15361
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_tests.sh
+40
-0
40 additions, 0 deletions
run_tests.sh
with
40 additions
and
0 deletions
run_tests.sh
0 → 100755
+
40
−
0
View file @
cca6692a
#!/bin/bash
set
-e
function
usage
{
echo
"arguments:"
echo
"-w warnings are errors"
exit
1
}
# parse the command line
excluded_files
=
""
extra_arguments
=
""
while
getopts
"w"
opt
;
do
case
$opt
in
w
)
echo
"WARNING: warnings are treated like errors for debugging."
extra_arguments
=
"-W error"
;;
*
)
usage
;;
esac
done
if
[[
!
-z
$excluded_files
]]
;
then
ignore_option
=
"--ignore=
$excluded_files
"
fi
# create a virtual environement and install all dependencies
if
[[
!
-d
venv
]]
;
then
python3
-m
venv
--prompt
enstools-compression venv
source
venv/bin/activate
pip
install
-U
pip
pip
install
-e
.
pip
install
--force-reinstall
pytest pytest-mock
fi
source
venv/bin/activate
pytest
${
extra_arguments
}
${
ignore_option
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment