Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
beat.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
beat
beat.core
Commits
87ffa07b
Commit
87ffa07b
authored
Apr 24, 2018
by
André Anjos
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify docker testing
parent
9dd0792a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
25 deletions
+28
-25
.gitignore
.gitignore
+6
-0
.gitlab-ci.yml
.gitlab-ci.yml
+6
-2
conda/meta.yaml
conda/meta.yaml
+4
-0
scripts/before_test.sh
scripts/before_test.sh
+12
-10
scripts/test.sh
scripts/test.sh
+0
-13
No files found.
.gitignore
View file @
87ffa07b
...
...
@@ -22,3 +22,9 @@ opsnr.stt
.DS_Store
html/
record.txt
_ci/
miniconda.sh
miniconda/
miniconda.cached/
conda/recipe_append.yaml
conda-bld/
.gitlab-ci.yml
View file @
87ffa07b
...
...
@@ -68,12 +68,16 @@ stages:
stage
:
docker
before_script
:
# safe keep artifacts as before_build.sh will erase those...
-
cp -a ${CONDA_ROOT}/conda-bld/linux-64/*.tar.bz2
.
-
mv ${CONDA_ROOT}/conda-bld
.
-
./_ci/install.sh _ci master
#updates ci support scripts
-
./_ci/before_build.sh
-
mv conda-bld ${CONDA_ROOT}
-
./scripts/before_test.sh
script
:
-
./scripts/test.sh
-
export BEAT_DOCKER_TESTS=true
-
BOB_TEST_ONLY=true ./_ci/build.sh
after_script
:
-
./_ci/after_build.sh
build_linux_27
:
...
...
conda/meta.yaml
View file @
87ffa07b
...
...
@@ -53,7 +53,11 @@ test:
commands
:
-
worker --help
{
%
if environ.get('BEAT_DOCKER_TESTS'
,
False) %
}
-
nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
{
%
else %
}
-
nosetests --with-coverage --cover-package={{ name }} -sv {{ name }} --exclude=".*test_docker.*"
{
%
endif %
}
-
sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
-
sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
-
conda inspect linkages -p $PREFIX {{ name }}
# [not win]
...
...
scripts/before_test.sh
View file @
87ffa07b
...
...
@@ -6,16 +6,6 @@ source ${basedir}/_ci/functions.sh
REGISTRY
=
"docker.idiap.ch"
check_env REGISTRY
# Makes sure we activate the base environment if available
run_cmd
source
${
CONDA_ROOT
}
/etc/profile.d/conda.sh
run_cmd conda activate base
export_env PATH
# Run our docker-based tests for this package
run_cmd conda create
--yes
--name
docker
python
=
${
PYTHON_VERSION
}
run_cmd conda
install
--yes
--name
docker
--use-local
${
CI_PROJECT_NAME
}
-
${
BOB_PACKAGE_VERSION
}
-
*
.tar.bz2
run_cmd conda
install
--yes
--name
docker nose
# Select here images that are required for minimal operation (or tests)
IMAGES
=(
"
${
REGISTRY
}
/beat/beat.env.system.python:1.3.0r0"
...
...
@@ -88,3 +78,15 @@ if [ "$1" == "clean" ]; then
run_cmd
rm
-rf
"
${
BEAT_CORE_TEST_DIR
}
/
${
algodir
}
/build/"
done
fi
# Makes sure we activate the base environment if available
run_cmd
source
${
CONDA_ROOT
}
/etc/profile.d/conda.sh
run_cmd conda activate base
export_env PATH
for
subchannel
in
linux-64 osx-64 noarch
;
do
if
[
!
-d
${
CONDA_ROOT
}
/conda-bld/
${
subchannel
}
]
;
then
run_cmd
mkdir
-p
${
CONDA_ROOT
}
/conda-bld/
${
subchannel
}
fi
run_cmd conda index
${
CONDA_ROOT
}
/conda-bld/
${
subchannel
}
done
scripts/test.sh
deleted
100755 → 0
View file @
9dd0792a
#!/usr/bin/env bash
basedir
=
`
pwd
`
source
${
basedir
}
/_ci/functions.sh
# Makes sure we activate the base environment if available
run_cmd
source
${
CONDA_ROOT
}
/etc/profile.d/conda.sh
run_cmd conda activate base
export_env PATH
# Runs the complete test suite, including docker-based tests
run_cmd conda activate docker
run_cmd nosetests
--with-coverage
--cover-package
=
beat.core
-sv
beat.core
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