Skip to content

Commit

Permalink
#800: Nightly command test (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfeilex authored Sep 8, 2022
1 parent 5574922 commit 889dff4
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 18 deletions.
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
* 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

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

0 comments on commit 889dff4

Please sign in to comment.