Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
5b5bd119
Commit
5b5bd119
authored
8 years ago
by
Guillaume Valadon
Committed by
Pierre Lalet
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Travis CI improvements (#258)
parent
02ae08b4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+3
-3
3 additions, 3 deletions
.travis.yml
.travis/install.sh
+1
-1
1 addition, 1 deletion
.travis/install.sh
.travis/test.sh
+6
-3
6 additions, 3 deletions
.travis/test.sh
with
10 additions
and
7 deletions
.travis.yml
+
3
−
3
View file @
5b5bd119
...
...
@@ -15,7 +15,7 @@ matrix:
-
os
:
osx
language
:
generic
env
:
-
SCAPY_USE_PCAPDNET=
true
-
SCAPY_USE_PCAPDNET=
yes
# Run as root
-
os
:
linux
...
...
@@ -29,13 +29,13 @@ matrix:
python
:
2.7
env
:
-
TRAVIS_SUDO=sudo
-
SCAPY_USE_PCAPDNET=
true
-
SCAPY_USE_PCAPDNET=
yes
-
os
:
osx
language
:
generic
env
:
-
TRAVIS_SUDO=sudo
-
SCAPY_USE_PCAPDNET=
true
-
SCAPY_USE_PCAPDNET=
yes
install
:
bash .travis/install.sh
...
...
This diff is collapsed.
Click to expand it.
.travis/install.sh
+
1
−
1
View file @
5b5bd119
...
...
@@ -10,7 +10,7 @@ if [ ! -z $SCAPY_USE_PCAPDNET ]
then
if
[
"
$TRAVIS_OS_NAME
"
=
"linux"
]
then
$TRAVIS_SUDO
apt-get
install
python-pcap
y
python-dumbnet
$TRAVIS_SUDO
apt-get
install
python-
lib
pcap python-dumbnet
elif
[
"
$TRAVIS_OS_NAME
"
=
"osx"
]
then
mkdir
-p
/Users/travis/Library/Python/2.7/lib/python/site-packages
...
...
This diff is collapsed.
Click to expand it.
.travis/test.sh
+
6
−
3
View file @
5b5bd119
# Dump Scapy config
python
-c
"from scapy.all import *; print conf"
# Don't run tests that requires root privileges
if
[
-z
$TRAVIS_SUDO
]
then
UT_FLAGS
=
"-K netaccess"
fi
#
Run unit tests
#
Run unit tests
cd test
/
for
f
in
*
.uts
do
$TRAVIS_SUDO
./run_tests
-
q
-F
-t
$f
$UT_FLAGS
||
exit
$?
$TRAVIS_SUDO
./run_tests
-
f
text
-t
$f
$UT_FLAGS
||
exit
$?
done
for
f
in
../scapy/contrib/
*
.uts
do
$TRAVIS_SUDO
./run_tests
-
q
-F
-t
$f
$UT_FLAGS
-P
"load_contrib('
$(
basename
${
f
/.uts
}
)
')"
||
exit
$?
$TRAVIS_SUDO
./run_tests
-
f
text
-t
$f
$UT_FLAGS
-P
"load_contrib('
$(
basename
${
f
/.uts
}
)
')"
||
exit
$?
done
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