jenkins: add backwards compatibility test (#2774)

* add jenkins runs backwards compat test, fix sa config issue

* try to use current branch

* add jenkins stage condition of branch name

* try when with branch env var

* only run test on master branch

* fix != to ==

* add comment, fix indentation

* run for all branches

* make comment more specific
This commit is contained in:
Jess G 2019-08-14 08:34:12 -07:00 committed by GitHub
parent 786828ea0a
commit e1d8503f50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -90,6 +90,18 @@ pipeline {
sh 'make test-sim'
}
}
stage('Backwards Compatibility') {
environment {
STORJ_NETWORK_HOST4 = '127.0.0.3'
STORJ_NETWORK_HOST6 = '127.0.0.3'
}
steps {
sh 'make test-sim-backwards-compatible'
}
}
}
}
}

View File

@ -38,6 +38,9 @@ storj-sim -x --host $STORJ_NETWORK_HOST4 network test bash "$SCRIPTDIR"/test-bac
make -C "$BRANCH_DIR" install-sim
# this replaces anywhere that has "/release/" in the config file, which currently just renames the static dir paths
sed -i -e 's#/release/#/branch/#g' $STORJ_NETWORK_DIR/satellite/0/config.yaml
# run download part of backward compatibility tests from the current branch
storj-sim -x --host $STORJ_NETWORK_HOST4 network test bash "$SCRIPTDIR"/test-backwards.sh download