Commit 828fa26b authored by Valentin Suhnjov's avatar Valentin Suhnjov

RIHAKB-128. Update CI test and build scripts

parent f5362aa1
......@@ -14,19 +14,18 @@ test:
before_script:
- node -v
- npm -v
- npm install
script:
- mvn clean test
- ./test.sh
tags:
- riha
build:
stage: build
script:
- mvn clean package
- ./build.sh
artifacts:
paths:
- target/*.jar
- backend/target/*.jar
tags:
- riha
......@@ -37,7 +36,7 @@ deploy_development:
- chmod 700 id_rsa
- mkdir $HOME/.ssh
- echo "$SSH_HOST_KEY" > $HOME/.ssh/known_hosts
- scp -i id_rsa target/*.jar deployer@$SSH_HOST:$DEPLOYMENT_DIR/$ARTIFACT_NAME
- scp -i id_rsa backend/target/*.jar deployer@$SSH_HOST:$DEPLOYMENT_DIR/$ARTIFACT_NAME
- ssh -i id_rsa deployer@$SSH_HOST "/sbin/service $CI_PROJECT_NAME restart"
environment:
name: development
......
#!/bin/bash
cd src/frontend &&
mvn -f ../../pom.xml frontend:install-node-and-yarn frontend:yarn frontend:yarn@install-bower frontend:yarn@build frontend:yarn@test &&
cd ../.. &&
npm install &&
mvn clean package
mvn clean &&
pushd frontend &&
mvn frontend:install-node-and-yarn frontend:yarn frontend:yarn@install-bower frontend:yarn@build &&
popd &&
mvn -DskipTests=true package
\ No newline at end of file
#!/bin/bash
mvn clean &&
# UI tests are disabled for now
#pushd frontend &&
#mvn frontend:install-node-and-yarn frontend:yarn frontend:yarn@install-bower frontend:yarn@build frontend:yarn@test &&
#popd &&
mvn test
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment