mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 03:22:47 +01:00
build: relocate dash-specific CI scripts to its own directory
This commit is contained in:
parent
607707f9f9
commit
06b595b6ee
@ -80,7 +80,7 @@ builder-image:
|
||||
before_script:
|
||||
- export CACHE_DIR=$CI_PROJECT_DIR/cache
|
||||
- echo BUILD_TARGET=$BUILD_TARGET
|
||||
- source ./ci/matrix.sh
|
||||
- source ./ci/dash/matrix.sh
|
||||
|
||||
# Setup some environment variables
|
||||
- |
|
||||
@ -109,8 +109,8 @@ builder-image:
|
||||
stage: build
|
||||
extends: .base-template
|
||||
script:
|
||||
- ./ci/build_src.sh
|
||||
- ./ci/test_unittests.sh # Run unit tests in build stage to avoid creating too many parallel jobs
|
||||
- ./ci/dash/build_src.sh
|
||||
- ./ci/dash/test_unittests.sh # Run unit tests in build stage to avoid creating too many parallel jobs
|
||||
cache:
|
||||
# Let all branches share the same cache, which is ok because ccache is able to handle it
|
||||
key:
|
||||
@ -141,7 +141,7 @@ builder-image:
|
||||
INTEGRATION_TESTS_ARGS: "--extended --exclude feature_pruning,feature_dbcrash"
|
||||
script:
|
||||
- echo "INTEGRATION_TESTS_ARGS=${INTEGRATION_TESTS_ARGS}"
|
||||
- ./ci/test_integrationtests.sh $INTEGRATION_TESTS_ARGS
|
||||
- ./ci/dash/test_integrationtests.sh $INTEGRATION_TESTS_ARGS
|
||||
after_script:
|
||||
- mkdir -p $CI_PROJECT_DIR/testlogs
|
||||
artifacts:
|
||||
|
14
.travis.yml
14
.travis.yml
@ -31,20 +31,20 @@ stages:
|
||||
builddepends: &builddepends
|
||||
stage: build depends
|
||||
script:
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/build_depends.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/dash/build_depends.sh
|
||||
|
||||
buildsrc: &buildsrc
|
||||
stage: build src
|
||||
script:
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/build_depends.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/build_src.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/dash/build_depends.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/dash/build_src.sh
|
||||
|
||||
runtests: &runtests
|
||||
stage: run tests
|
||||
script:
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/build_depends.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/build_src.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/test_unittests.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/dash/build_depends.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/dash/build_src.sh
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/dash/test_unittests.sh
|
||||
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then extended="--extended --exclude feature_pruning,feature_dbcrash"; fi
|
||||
- $DOCKER_RUN_IN_BUILDER ./ci/test_integrationtests.sh --quiet --jobs=3 ${extended}
|
||||
|
||||
@ -52,7 +52,7 @@ builddocker: &builddocker
|
||||
stage: build docker
|
||||
script:
|
||||
# no need to run tests again here
|
||||
- if [ "$DOCKER_BUILD" = "true" ]; then $DOCKER_RUN_IN_BUILDER ./ci/build_depends.sh && $DOCKER_RUN_IN_BUILDER ./ci/build_src.sh && BUILD_DIR=build-ci/dashcore-$BUILD_TARGET ./docker/build-docker.sh; fi
|
||||
- if [ "$DOCKER_BUILD" = "true" ]; then $DOCKER_RUN_IN_BUILDER ./ci/dash/build_depends.sh && $DOCKER_RUN_IN_BUILDER ./ci/dash/build_src.sh && BUILD_DIR=build-ci/dashcore-$BUILD_TARGET ./docker/build-docker.sh; fi
|
||||
|
||||
- MAKEJOBS=-j3
|
||||
- RUN_UNIT_TESTS=true
|
||||
|
@ -6,7 +6,7 @@ export LC_ALL=C.UTF-8
|
||||
|
||||
set -e
|
||||
|
||||
source ./ci/matrix.sh
|
||||
source ./ci/dash/matrix.sh
|
||||
|
||||
unset CC; unset CXX
|
||||
unset DISPLAY
|
@ -6,7 +6,7 @@ export LC_ALL=C.UTF-8
|
||||
|
||||
set -e
|
||||
|
||||
source ./ci/matrix.sh
|
||||
source ./ci/dash/matrix.sh
|
||||
|
||||
unset CC; unset CXX
|
||||
unset DISPLAY
|
@ -8,7 +8,7 @@ set -e
|
||||
|
||||
PASS_ARGS="$*"
|
||||
|
||||
source ./ci/matrix.sh
|
||||
source ./ci/dash/matrix.sh
|
||||
|
||||
if [ "$RUN_INTEGRATIONTESTS" != "true" ]; then
|
||||
echo "Skipping integration tests"
|
@ -6,7 +6,7 @@ export LC_ALL=C.UTF-8
|
||||
|
||||
set -e
|
||||
|
||||
source ./ci/matrix.sh
|
||||
source ./ci/dash/matrix.sh
|
||||
|
||||
if [ "$RUN_UNITTESTS" != "true" ]; then
|
||||
echo "Skipping unit tests"
|
Loading…
Reference in New Issue
Block a user