mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 05:35:43 +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
19
.travis.yml
19
.travis.yml
@ -28,7 +28,18 @@ 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:
|
||||||
|
- export CHROME_BIN=chromium-browser
|
||||||
|
- export DISPLAY=:99.0
|
||||||
|
- sh -e /etc/init.d/xvfb start
|
||||||
- sudo ./tests/hostcfg.sh
|
- sudo ./tests/hostcfg.sh
|
||||||
- sudo ./tests/generateCerts.sh
|
- sudo ./tests/generateCerts.sh
|
||||||
- sudo ./make/prepare
|
- sudo ./make/prepare
|
||||||
@ -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