Skip to content

Commit

Permalink
полный отказ от opm run init
Browse files Browse the repository at this point in the history
  • Loading branch information
artbear committed Nov 27, 2024
1 parent 9563ab4 commit 0e784e4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Простой чек-лист использования

- если скачали в первый раз, выполните `opm run init`
- если скачали в первый раз, выполните `oscript tasks/init.os`
- для сборки\компиляции только внешних файлов выполните `opm run cepf` - все соберется, только тестовые ИБ не будут обновлены
- для выгрузки\декомпиляции своих изменений в исходники `opm run depf`
- и стандартный процесс Гитхаба - Пулл-реквесты и т.д.
Expand Down Expand Up @@ -99,7 +99,7 @@ git pull upstream develop
* Выполняем
```
cd add
opm run init
oscript tasks/init.os
```
> ВНИМАНИЕ: команды `opm` необходимо выполнять в обычном виндовом `cmd\far` , но не в bash-консоли, т.к. не сможет найти команду `opm`
Expand Down
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- sudo docker ps && sleep 5
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 wget -q --continue -O /tmp/oscript.deb https://oscript.io/downloads/latest/x64/onescript-engine_1.3.0_all.deb && sudo dpkg -i /tmp/oscript.deb"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm install opm && sudo opm install"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run init file --buildFolderPath ./build"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo oscript tasks/init.os file --buildFolderPath ./build"
- sudo docker stop "$(cat /tmp/container_id)"

- stage: test
Expand All @@ -63,7 +63,7 @@ jobs:
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 wget -q --continue -O /tmp/oscript.deb https://oscript.io/downloads/latest/x64/onescript-engine_1.3.0_all.deb && sudo dpkg -i /tmp/oscript.deb"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm install opm && sudo opm install && sudo opm update vanessa-runner && sudo opm install v8find"
- ./tools/linux/travistest.sh ./features/StepsRunner/
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run initib file --buildFolderPath ./build"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo oscript tasks/initib.os file --buildFolderPath ./build"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run vanessatravis all --path ./features/StepsRunner/ --settings ./tools/JSON/VBParams8310linux.json"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run vanessatravis all --path ./features/StepsProgramming/ --settings ./tools/JSON/VBParams8310linux.json"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run vanessatravis all --path ./features/Core/FeatureLoad/ --settings ./tools/JSON/VBParams8310linux.json"
Expand All @@ -79,7 +79,7 @@ jobs:
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 wget -q --continue -O /tmp/oscript.deb https://oscript.io/downloads/latest/x64/onescript-engine_1.3.0_all.deb && sudo dpkg -i /tmp/oscript.deb"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm install opm && sudo opm install && sudo opm update vanessa-runner && sudo opm install v8find"
- ./tools/linux/travistest.sh ./features/Core/Translate/
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run initib file --buildFolderPath ./build"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo oscript tasks/initib.os file --buildFolderPath ./build"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run vanessatravis all --path ./features/Core/Translate/ --settings ./tools/JSON/VBParams8310linux.json"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run vanessatravis all --path ./features/Core/FeatureReader/ --settings ./tools/JSON/VBParams8310linux.json"
# - sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run vanessatravis all --path ./features/Core/FeatureReader/ --settings ./tools/JSON/VBParams8310linux.json"
Expand All @@ -95,7 +95,7 @@ jobs:
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 wget -q --continue -O /tmp/oscript.deb https://oscript.io/downloads/latest/x64/onescript-engine_1.3.0_all.deb && sudo dpkg -i /tmp/oscript.deb"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm install opm && sudo opm install && sudo opm update vanessa-runner && sudo opm install v8find"
- ./tools/linux/travistest.sh ./features/Core/FeatureReader/
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run initib file --buildFolderPath ./build"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo oscript tasks/initib.os file --buildFolderPath ./build"
- sudo docker exec -u ubuntu "$(cat /tmp/container_id)" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm run vanessatravis all --path ./features/Core/TestClient/ --settings ./tools/JSON/VBParams8310linux.json"
- sudo docker stop "$(cat /tmp/container_id)"
- sudo docker stop "$(cat /tmp/container_idngrok )"
Expand Down
2 changes: 1 addition & 1 deletion F.A.Q.MD
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ vrunner vanessa --settings tools\vrunner.json --path ПутьККаталогу

Самый простой способ

- выполнить команду `opm run init` согласно [Руководству контрибьютора](./.github\CONTRIBUTING.md)
- выполнить команду `oscript tasks/init.os` согласно [Руководству контрибьютора](./.github\CONTRIBUTING.md)
- и немного подождать

### 2. Как быстро написать проверочную фичу для новой возможности, реализуемой внутри самого Vanessa.ADD или его плагина?
Expand Down
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def behaviortask(build, path, suffix, version){
// env.LOGOS_LEVEL = 'DEBUG'
// sh 'printenv'

cmd "opm run initib file --buildFolderPath ./build --v8version ${version}"
cmd "oscript tasks/initib.os file --buildFolderPath ./build --v8version ${version}"

withEnv(["VANESSA_JUNITPATH=./ServiceBases/junitreport/${suffix}", "VANESSA_cucumberreportpath=./ServiceBases/cucumber/${suffix}"]) {
//Маленький хак, переход в dir автоматом создает каталог и не надо писать кроссплатформенный mkdir -p
Expand Down Expand Up @@ -91,7 +91,7 @@ tasks["behavior video write"] = {

// cmd "opm install"
// cmd "opm list"
// cmd "opm run initib file --buildFolderPath ./build --v8version 8.3.10"
// cmd "oscript tasks/initib.os file --buildFolderPath ./build --v8version 8.3.10"

// cmd "opm run vanessa all --path ./features/Core/TestClient/ --tag video --settings ./tools/JSON/VBParams8310UF.json";
// } catch (e) {
Expand Down Expand Up @@ -147,7 +147,7 @@ tasks["xdd"] = {
// env.LOGOS_LEVEL = 'DEBUG'
// // sh 'printenv'

// cmd "opm run initib file --buildFolderPath ./build --v8version 8.3.10"
// cmd "oscript tasks/initib.os file --buildFolderPath ./build --v8version 8.3.10"

// cmd "opm run xdd";
// } catch (e) {
Expand Down Expand Up @@ -251,9 +251,9 @@ firsttasks["slave"] = {
// env.LOGOS_LEVEL = 'DEBUG'
// sh 'printenv'

cmd "opm run init file --buildFolderPath ./build"
cmd "oscript tasks/init.os file --buildFolderPath ./build"
// } catch (e) {
// echo "opm run init ${it} status : ${e}"
// echo "oscript tasks/init.os ${it} status : ${e}"
// currentBuild.result = 'UNSTABLE'
// }
stash excludes: 'build/cache.txt,build/ib/**,build/ibservice/**, build/ibservicexdd/**', includes: 'build/**', name: 'buildResults'
Expand Down Expand Up @@ -284,7 +284,7 @@ firsttasks["slave"] = {
// cmd(command);
// sh 'sleep 10'
// sh 'sudo docker exec -u ubuntu "$(cat /tmp/container_id_${BUILD_NUMBER})" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 sudo opm install && sudo opm update -all"'
// sh 'sudo docker exec -u ubuntu "$(cat /tmp/container_id_${BUILD_NUMBER})" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 opm run init && opm run clean"'
// sh 'sudo docker exec -u ubuntu "$(cat /tmp/container_id_${BUILD_NUMBER})" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 oscript tasks/init.os && opm run clean"'
// sh 'sudo rm -f add*.ospx'
// sh 'sudo docker exec -u ubuntu "$(cat /tmp/container_id_${BUILD_NUMBER})" /bin/bash -c "cd /home/ubuntu/code; DISPLAY=:1.0 opm build ./"'
// sh 'sudo rm -rf add.tar.gz && sudo rm -f add-devel.tar.gz && sudo rm -f add.zip'
Expand Down
4 changes: 2 additions & 2 deletions tools/jenkins/Jenkinsfile-fast
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ node("vanessa-add") {
echo "Сборка бинарных файлов"
timeout(90){
timestamps {
cmd("opm run init file --v8version 8.3.10", isUnix)
cmd("oscript tasks/init.os file --v8version 8.3.10", isUnix)
}
}

Expand Down Expand Up @@ -394,4 +394,4 @@ def makeAllure(allureResults) {
echo "allure status : ${e}"
currentBuild.result = 'UNSTABLE'
}
}
}

0 comments on commit 0e784e4

Please sign in to comment.