Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#800 Nightly command test #844

Merged
merged 90 commits into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
d076d77
add test-command
alfeilex Aug 5, 2022
48fc9f9
Delete scripts/src/test/bash/integration-test/test-/conf directory
alfeilex Aug 5, 2022
fd4f1a8
Update test-macos.yml
alfeilex Aug 5, 2022
f18db83
Update test-windows.yml
alfeilex Aug 5, 2022
d5b28f6
Update test-ubuntu.yml
alfeilex Aug 5, 2022
8d51abb
modfiy test-command
alfeilex Aug 5, 2022
02bbeaf
change permissions to test-sfcommands
alfeilex Aug 8, 2022
f7feaae
Update test-sfcommands
alfeilex Aug 8, 2022
87f9512
Update test-sfcommands
alfeilex Aug 10, 2022
531de66
Update test-sfcommands
alfeilex Aug 10, 2022
42ac37c
Update test-sfcommands
alfeilex Aug 15, 2022
55a8626
modify test
alfeilex Aug 15, 2022
0c337b9
modify test
alfeilex Aug 15, 2022
038a849
change test
alfeilex Aug 15, 2022
09697ef
change test
alfeilex Aug 15, 2022
223b2b3
update test
alfeilex Aug 16, 2022
71efde8
update test
alfeilex Aug 16, 2022
934cbed
update test
alfeilex Aug 16, 2022
7515e20
Permission fix
alfeilex Aug 16, 2022
912dc81
test upgrade
alfeilex Aug 17, 2022
85e0603
Update all-tests
alfeilex Aug 17, 2022
fbbe89d
Create full-test-macos.yml
alfeilex Aug 17, 2022
b04442b
Create full-test-ubuntu.yml
alfeilex Aug 17, 2022
33172e6
Create full-test-windows.yml
alfeilex Aug 17, 2022
7b7de8a
Update test-ubuntu.yml
alfeilex Aug 17, 2022
1ba202f
Update full-test-ubuntu.yml
alfeilex Aug 18, 2022
269e294
Update full-test-macos.yml
alfeilex Aug 18, 2022
8719fbe
Update full-test-ubuntu.yml
alfeilex Aug 18, 2022
c282ef6
Update test-ubuntu.yml
alfeilex Aug 18, 2022
d1ad033
Update test-ubuntu.yml
alfeilex Aug 18, 2022
1c9e334
Update test-windows.yml
alfeilex Aug 18, 2022
a0eca3d
Update all-tests
alfeilex Aug 18, 2022
5d2c82c
Update test-macos.yml
alfeilex Aug 18, 2022
205d291
Update full-test-macos.yml
alfeilex Aug 18, 2022
d58e2db
Update test-windows.yml
alfeilex Aug 18, 2022
589ef16
Update full-test-windows.yml
alfeilex Aug 18, 2022
bc45056
Update full-test-windows.yml
alfeilex Aug 18, 2022
b7bdfb5
Update full-test-macos.yml
alfeilex Aug 18, 2022
595baef
Update full-test-ubuntu.yml
alfeilex Aug 18, 2022
5289a9f
Update full-test-ubuntu.yml
alfeilex Aug 18, 2022
549e965
Update full-test-macos.yml
alfeilex Aug 18, 2022
0f79a3d
Update full-test-macos.yml
alfeilex Aug 18, 2022
a001d26
Update test-sfcommands
alfeilex Aug 19, 2022
0c579c9
Update full-test-windows.yml
alfeilex Aug 19, 2022
d6f7d7b
Update test-sfcommands
alfeilex Aug 19, 2022
ed6b044
Update test-sfcommands
alfeilex Aug 19, 2022
517ee51
Update test-sfcommands
alfeilex Aug 19, 2022
49efaf8
Update test-sfcommands
alfeilex Aug 19, 2022
7ebba0a
Update test-sfcommands
alfeilex Aug 22, 2022
2b7808f
remove docker
alfeilex Aug 22, 2022
2037fb0
Update full-test-windows.yml
alfeilex Aug 22, 2022
6e34560
Update test-windows.yml
alfeilex Aug 22, 2022
d6d19bc
Update test-windows.yml
alfeilex Aug 22, 2022
19859fa
Update test-macos.yml
alfeilex Aug 22, 2022
4724bd6
Update test-ubuntu.yml
alfeilex Aug 22, 2022
76dc69d
Update test-windows.yml
alfeilex Aug 22, 2022
1d94bac
Update full-test-macos.yml
alfeilex Aug 22, 2022
a9bef9d
Update full-test-macos.yml
alfeilex Aug 22, 2022
4f4eb03
Update test-sfcommands
alfeilex Aug 22, 2022
33ae460
Update test-sfcommands
alfeilex Aug 22, 2022
69ccd24
Update test-sfcommands
alfeilex Aug 23, 2022
fd7552a
Update full-test-macos.yml
alfeilex Aug 23, 2022
7882556
Update test-sfcommands
alfeilex Aug 23, 2022
70e3f53
Update test-sfcommands
alfeilex Aug 23, 2022
44d35c5
Update full-test-macos.yml
alfeilex Aug 23, 2022
99fe5ec
Update CHANGELOG.asciidoc
alfeilex Aug 24, 2022
e17a953
Update full-test-macos.yml
alfeilex Aug 29, 2022
0ec89b2
Update full-test-macos.yml
alfeilex Aug 29, 2022
a9918ee
Update full-test-windows.yml
alfeilex Aug 29, 2022
5247b4c
Update full-test-windows.yml
alfeilex Aug 29, 2022
0275694
Update full-test-ubuntu.yml
alfeilex Aug 29, 2022
30c1915
Update full-test-ubuntu.yml
alfeilex Aug 29, 2022
59d133e
Merge branch 'master' into nightly-command-test
hohwille Aug 30, 2022
a98fd60
Update full-test-windows.yml
alfeilex Aug 30, 2022
804bf5d
Update environment-project
alfeilex Aug 30, 2022
31493d1
Update test-macos.yml
alfeilex Aug 30, 2022
17558fd
Update test-windows.yml
alfeilex Aug 30, 2022
3217992
Update test-ubuntu.yml
alfeilex Aug 30, 2022
1bbf70d
Delete full-test-macos.yml
alfeilex Aug 30, 2022
f1ec6ac
Delete full-test-ubuntu.yml
alfeilex Aug 30, 2022
55369c4
Delete full-test-windows.yml
alfeilex Aug 30, 2022
e58b6c9
Merge branch 'master' into nightly-command-test
hohwille Sep 1, 2022
8119fc8
Merge branch 'master' into nightly-command-test
hohwille Sep 1, 2022
efb0979
modify nightly test
alfeilex Sep 7, 2022
42fa2e1
Merge branch 'nightly-command-test' of https://github.com/alfeilex/id…
alfeilex Sep 7, 2022
afeca32
modify nightly test
alfeilex Sep 7, 2022
4e79c63
change permissions
alfeilex Sep 7, 2022
57d75e2
Merge branch 'master' into nightly-command-test
alfeilex Sep 7, 2022
5ad4520
modify nightly tests
alfeilex Sep 8, 2022
cba692c
Merge branch 'nightly-command-test' of https://github.com/alfeilex/id…
alfeilex Sep 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI Build MacOS
on:
on:
schedule:
- cron: '0 0 * * *'
- cron: ' 2 * * *'
jobs:
check_commit:
uses: devonfw/ide/.github/workflows/check-commit.yml@master
Expand All @@ -22,4 +22,6 @@ jobs:
- name: Set up Shellcheck
run: brew install shellcheck
- name: Build project with Maven
run: mvn -B -ntp install
run: |
export INTEGRATION_TEST=true
mvn -B -ntp install
6 changes: 4 additions & 2 deletions .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI Build Ubuntu
on:
schedule:
- cron: '0 0 * * *'
- cron: '0 3 * * *'
jobs:
check_commit:
uses: devonfw/ide/.github/workflows/check-commit.yml@master
Expand All @@ -20,4 +20,6 @@ jobs:
with:
java-version: '11'
- name: Build project with Maven
run: mvn -B -ntp install
run: |
export INTEGRATION_TEST=true
mvn -B -ntp install
8 changes: 4 additions & 4 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI Build Windows
on:
schedule:
- cron: '0 0 * * *'
- cron: '0 1 * * *'
jobs:
check_commit:
uses: devonfw/ide/.github/workflows/check-commit.yml@master
Expand All @@ -25,6 +25,6 @@ jobs:
- name: Set up Shellcheck
run: choco install shellcheck
- name: Build project with Maven
run: mvn -B -ntp install


run: |
export INTEGRATION_TEST=true
mvn -B -ntp install
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ New release with various improvements and bugfixes:
* https://github.com/devonfw/ide/issues/803[#803]: git pull not working on debug
* https://github.com/devonfw/ide/issues/811[#811]: add function for installing with different package managers
* https://github.com/devonfw/ide/issues/691[#691]: Nightly test of devonfw-ide installation
* https://github.com/devonfw/ide/issues/800[#800]: Nightly test with additional tests
hohwille marked this conversation as resolved.
Show resolved Hide resolved
* https://github.com/devonfw/ide/issues/767[#767]: Fix AsciiDoc issues
* https://github.com/devonfw/ide/issues/774[#774]: Create Getting-Started-For-Developers Documentation

Expand Down
2 changes: 1 addition & 1 deletion scripts/src/main/resources/scripts/environment-project
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ do
# Load custom configuration of software
if [ -e "${SOFTWARE_FOLDER}/ide-config" ]
then
# shellcheck disable=SC1090
# shellcheck disable=SC1090,SC1091
source "${SOFTWARE_FOLDER}/ide-config"
fi
fi
Expand Down
23 changes: 15 additions & 8 deletions scripts/src/test/bash/all-tests
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#!/bin/bash

success=0
failure=0
total=0
mkdir -p ~/.devon
touch ~/.devon/.license.agreement
rm -rf integration-test
mkdir -p integration-test
cd integration-test
export DEVON_SKIP_PROJECT_SETUP=true
for testpath in "$(dirname $0)"/test-*

function doTests() {
for testpath in "$(dirname $0)"/"${1}"-*
do
testcase="${testpath/*\//}"
echo "Running test #${total}: ${testcase}"
Expand All @@ -28,6 +25,16 @@ do
let "total++"
cd ..
done
}

mkdir -p ~/.devon
touch ~/.devon/.license.agreement
rm -rf integration-test
mkdir -p integration-test
cd integration-test
export DEVON_SKIP_PROJECT_SETUP=true
doTests "test"
[[ "${INTEGRATION_TEST}" == true ]] && doTests "integration-test"
echo
echo "*****************************************************"
echo "Executed #${total} test(s), #${success} succeeded and #${failure} failed"
Expand All @@ -37,4 +44,4 @@ then
else
echo "There are test failures! Please check the logs and fix errors."
exit 1
fi
fi
8 changes: 8 additions & 0 deletions scripts/src/test/bash/functions
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
hohwille marked this conversation as resolved.
Show resolved Hide resolved

function doCommandTest() {
cd ../test-setup
CLI="${PWD}/scripts/devon"
"${CLI}" "${1}" setup
exit "${?}"
}
4 changes: 4 additions & 0 deletions scripts/src/test/bash/integration-test-terraform
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

source "$(dirname "${0}")"/functions
doCommandTest terraform
4 changes: 4 additions & 0 deletions scripts/src/test/bash/integration-test-vscode
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

source "$(dirname "${0}")"/functions
doCommandTest vscode