forked from Catrobat/Catroid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Catrobat#3451 from 84n4n4/CATROID-449
CATROID-449 move end2end tests against share to nightly runs
- Loading branch information
Showing
7 changed files
with
96 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!groovy | ||
|
||
pipeline { | ||
agent { | ||
dockerfile { | ||
filename 'Dockerfile.jenkins' | ||
// 'docker build' would normally copy the whole build-dir to the container, changing the | ||
// docker build directory avoids that overhead | ||
dir 'docker' | ||
// Pass the uid and the gid of the current user (jenkins-user) to the Dockerfile, so a | ||
// corresponding user can be added. This is needed to provide the jenkins user inside | ||
// the container for the ssh-agent to work. | ||
// Another way would be to simply map the passwd file, but would spoil additional information | ||
// Also hand in the group id of kvm to allow using /dev/kvm. | ||
additionalBuildArgs '--build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) --build-arg KVM_GROUP_ID=$(getent group kvm | cut -d: -f3)' | ||
args '--device /dev/kvm:/dev/kvm -v /var/local/container_shared/gradle_cache/$EXECUTOR_NUMBER:/home/user/.gradle -m=6.5G' | ||
label 'LimitedEmulator' | ||
} | ||
} | ||
|
||
options { | ||
timeout(time: 2, unit: 'HOURS') | ||
timestamps() | ||
} | ||
|
||
stages { | ||
stage('End to end tests requiring share authentication') { | ||
steps { | ||
sh '''./gradlew -PenableCoverage -Pemulator=android28 \ | ||
startEmulator createCatroidDebugAndroidTestCoverageReport \ | ||
-Pandroid.testInstrumentationRunnerArguments.class=org.catrobat.catroid.testsuites.OutgoingNetworkCallsTestSuite''' | ||
} | ||
post { | ||
always { | ||
junit '**/*TEST*.xml' | ||
|
||
sh './gradlew stopEmulator clearAvdStore' | ||
archiveArtifacts 'logcat.txt' | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
step([$class: 'LogParserPublisher', failBuildOnError: true, projectRulePath: 'buildScripts/log_parser_rules', unstableOnWarning: true, useProjectRule: true]) | ||
} | ||
unsuccessful { | ||
notifyChat(['#s2cc', '#catroweb-deployment']) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
catroid/src/androidTest/java/org/catrobat/catroid/testsuites/LocalHeadlessTestSuite.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Catroid: An on-device visual programming system for Android devices | ||
* Copyright (C) 2010-2018 The Catrobat Team | ||
* (<http://developer.catrobat.org/credits>) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* An additional term exception under section 7 of the GNU Affero | ||
* General Public License, version 3, is available at | ||
* http://developer.catrobat.org/license_additional_term | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package org.catrobat.catroid.testsuites; | ||
|
||
import org.catrobat.catroid.testsuites.annotations.Cat; | ||
import org.junit.experimental.categories.Categories; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.Suite; | ||
|
||
@RunWith(Categories.class) | ||
@Categories.ExcludeCategory({Cat.OutgoingNetworkTests.class}) | ||
|
||
@Suite.SuiteClasses(AllHeadlessTestsSuite.class) | ||
public class LocalHeadlessTestSuite { | ||
} |