mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
Add run test script to travis
1. remove clarity node contaienr on traivs 2. add run test script Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
0578d51437
commit
66e3db3350
33
.travis.yml
33
.travis.yml
@ -28,14 +28,25 @@ env:
|
|||||||
REG_VERSION: v2.6.2
|
REG_VERSION: v2.6.2
|
||||||
UI_BUILDER_VERSION: 1.6.0
|
UI_BUILDER_VERSION: 1.6.0
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- google-chrome
|
||||||
|
packages:
|
||||||
|
- google-chrome-stable
|
||||||
|
- google-chrome-beta
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo ./tests/hostcfg.sh
|
- export CHROME_BIN=chromium-browser
|
||||||
- sudo ./tests/generateCerts.sh
|
- export DISPLAY=:99.0
|
||||||
- sudo ./make/prepare
|
- sh -e /etc/init.d/xvfb start
|
||||||
- sudo mkdir -p "/data/redis"
|
- sudo ./tests/hostcfg.sh
|
||||||
- sudo mkdir -p /etc/ui/ca/ && sudo mv ./tests/ca.crt /etc/ui/ca/
|
- sudo ./tests/generateCerts.sh
|
||||||
- sudo mkdir -p /harbor && sudo mv ./VERSION /harbor/UIVERSION
|
- sudo ./make/prepare
|
||||||
- sudo ./tests/testprepare.sh
|
- sudo mkdir -p "/data/redis"
|
||||||
|
- sudo mkdir -p /etc/ui/ca/ && sudo mv ./tests/ca.crt /etc/ui/ca/
|
||||||
|
- sudo mkdir -p /harbor && sudo mv ./VERSION /harbor/UIVERSION
|
||||||
|
- sudo ./tests/testprepare.sh
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get update && sudo apt-get install -y libldap2-dev
|
- sudo apt-get update && sudo apt-get install -y libldap2-dev
|
||||||
@ -58,6 +69,11 @@ install:
|
|||||||
- sudo service postgresql stop
|
- sudo service postgresql stop
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- cd src/portal
|
||||||
|
- npm install -g -q --no-progress angular-cli
|
||||||
|
- npm install -g -q --no-progress karma
|
||||||
|
- npm install -q --no-progress
|
||||||
|
- npm run build_lib && npm run link_lib && cd ../..
|
||||||
- export POSTGRESQL_HOST=$IP
|
- export POSTGRESQL_HOST=$IP
|
||||||
- export REGISTRY_URL=$IP:5000
|
- export REGISTRY_URL=$IP:5000
|
||||||
- echo $REGISTRY_URL
|
- echo $REGISTRY_URL
|
||||||
@ -70,8 +86,7 @@ before_script:
|
|||||||
- sudo mkdir -p ./make/common/config/registry/ && sudo mv ./tests/reg_config.yml ./make/common/config/registry/config.yml
|
- sudo mkdir -p ./make/common/config/registry/ && sudo mv ./tests/reg_config.yml ./make/common/config/registry/config.yml
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- sudo make run_clarity_ut CLARITYIMAGE=goharbor/harbor-clarity-ui-builder:${UI_BUILDER_VERSION}
|
- cd src/portal && npm run test && cd ../..
|
||||||
- cat ./src/portal/npm-ut-test-results
|
|
||||||
- sudo docker-compose -f ./make/docker-compose.test.yml up -d
|
- sudo docker-compose -f ./make/docker-compose.test.yml up -d
|
||||||
- make go_check
|
- make go_check
|
||||||
- ./tests/pushimage.sh
|
- ./tests/pushimage.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user