mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +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>
26 lines
1.0 KiB
Bash
26 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
set +e
|
|
sudo rm -fr /data/*
|
|
sudo mkdir -p /data
|
|
|
|
set -e
|
|
# prepare cert ...
|
|
sudo sed "s/127.0.0.1/$1/" -i tests/generateCerts.sh
|
|
sudo ./tests/generateCerts.sh
|
|
sudo mkdir -p /etc/docker/certs.d/$1 && sudo cp ./harbor_ca.crt /etc/docker/certs.d/$1/
|
|
|
|
if [ "$2" = 'LDAP' ]; then
|
|
sudo ./tests/hostcfg.sh LDAP
|
|
cd tests && sudo ./ldapprepare.sh && cd ..
|
|
fi
|
|
|
|
if [ "$2" = 'DB' ]; then
|
|
sudo ./tests/hostcfg.sh
|
|
fi
|
|
|
|
sudo apt-get update && sudo apt-get install -y --no-install-recommends python-dev openjdk-7-jdk libssl-dev && sudo apt-get autoremove -y && sudo rm -rf /var/lib/apt/lists/*
|
|
sudo wget https://bootstrap.pypa.io/get-pip.py && sudo python ./get-pip.py && sudo pip install --ignore-installed urllib3 chardet requests && sudo pip install robotframework robotframework-httplibrary requests dbbot robotframework-pabot --upgrade
|
|
sudo make swagger_client
|
|
sudo make install GOBUILDIMAGE=golang:1.9.2 COMPILETAG=compile_golangimage CLARITYIMAGE=goharbor/harbor-clarity-ui-builder:1.6.0 NOTARYFLAG=true CLAIRFLAG=true CHARTFLAG=true
|
|
sleep 10 |