mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
Merge pull request #9057 from zhoumeina/try_ci
Run frontend unit test in separate job in travis. Also upgrade the node js version in CI
This commit is contained in:
commit
fcc301368c
@ -20,6 +20,9 @@ matrix:
|
||||
- go: 1.12.5
|
||||
env:
|
||||
- OFFLINE=true
|
||||
- node_js: 10.16.2
|
||||
env:
|
||||
- UI_UT=true
|
||||
env:
|
||||
global:
|
||||
- POSTGRESQL_HOST: localhost
|
||||
@ -64,3 +67,4 @@ script:
|
||||
- if [ "$APITEST_DB" == true ]; then bash ./tests/travis/api_run.sh DB $IP; fi
|
||||
- if [ "$APITEST_LDAP" == true ]; then bash ./tests/travis/api_run.sh LDAP $IP; fi
|
||||
- if [ "$OFFLINE" == true ]; then bash ./tests/travis/distro_installer.sh; fi
|
||||
- if [ "$UI_UT" == true ]; then bash ./tests/travis/ui_ut_run.sh ; fi
|
||||
|
7
tests/travis/ui_ut_run.sh
Normal file
7
tests/travis/ui_ut_run.sh
Normal file
@ -0,0 +1,7 @@
|
||||
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 ../..
|
||||
|
||||
cd ./src/portal && npm run lint && npm run lint:lib && npm run test && cd -
|
@ -2,12 +2,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
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 ../..
|
||||
|
||||
sudo apt-get update && sudo apt-get install -y libldap2-dev
|
||||
go get -d github.com/docker/distribution
|
||||
go get -d github.com/docker/libtrust
|
||||
|
@ -8,7 +8,6 @@ export CHROME_BIN=chromium-browser
|
||||
export DISPLAY=:99.0
|
||||
sh -e /etc/init.d/xvfb start
|
||||
|
||||
cd ./src/portal && npm run lint && npm run lint:lib && npm run test && cd -
|
||||
sudo docker-compose -f ./make/docker-compose.test.yml up -d
|
||||
sleep 10
|
||||
./tests/pushimage.sh
|
||||
|
Loading…
Reference in New Issue
Block a user