Base image to test Airflow using nosetests and Python 3.5.
This docker image is available as an automated build on the docker registry hub, so using it is as simple as running:
$ docker run hbpmip/airflow-test-py35:1.8.2-3
Create a new image including the source code and the unit tests to execute.
FROM hbpmip/airflow-test-py35:1.8.2-3
COPY your_pkg/ /src/your_pkg/
COPY your/tests/ /src/tests/
then fill the database with tables and data, using something you want to test.
WORKDIR /src/tests/
ENTRYPOINT ["nodetests", "your_tests.py"]
Run: ./build.sh
Run: ./tests/test.sh
Run: ./publish.sh
Copyright (C) 2017 LREN CHUV
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This work has been funded by the European Union Seventh Framework Program (FP7/20072013) under grant agreement no. 604102 (HBP)
This work is part of SP8 of the Human Brain Project (SGA1).