mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
002e5a2b70
This commit is to enable parallel run jobs with travis, and add API for DB and API for LDAP in travis. Signed-off-by: wang yan <wangyan@vmware.com>
14 lines
422 B
Bash
14 lines
422 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
docker ps
|
|
# run db auth api cases
|
|
if [ "$1" = 'DB' ]; then
|
|
pybot -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 /home/travis/gopath/src/github.com/goharbor/harbor/tests/robot-cases/Group0-BAT/API_DB.robot
|
|
fi
|
|
# run ldap api cases
|
|
if [ "$1" = 'LDAP' ]; then
|
|
pybot -v ip:$2 -v HARBOR_PASSWORD:Harbor12345 /home/travis/gopath/src/github.com/goharbor/harbor/tests/robot-cases/Group0-BAT/API_LDAP.robot
|
|
fi
|