Skip to content

Commit

Permalink
[FLINK-11468][tests] Setup surefire execution
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Nov 15, 2019
1 parent 5221c26 commit 499fe56
Show file tree
Hide file tree
Showing 17 changed files with 302 additions and 94 deletions.
49 changes: 26 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ cache:
- $HOME/maven_cache
# keep in sync with tools/travis/docs.sh
- $HOME/gem_cache
- $HOME/flink_download_cache

# do not cache our own artifacts
before_cache:
Expand All @@ -41,6 +42,8 @@ git:

env:
global:
- cache-dir: $HOME/flink_download_cache
- cache-btl: 30
# Global variable to avoid hanging travis builds when downloading cache archives.
- MALLOC_ARENA_MAX=2
- DOCKER_COMPOSE_VERSION=1.22.0
Expand Down Expand Up @@ -273,99 +276,99 @@ jobs:
# E2E profiles - Hadoop 2.8
- if: type = cron
stage: test
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -De2e-metrics"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -De2e-metrics -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup1"
script: ./tools/travis/nightly.sh split_misc.sh
name: e2e - misc - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup2"
script: ./tools/travis/nightly.sh split_ha.sh
name: e2e - ha - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup3"
script: ./tools/travis/nightly.sh split_sticky.sh
name: e2e - sticky - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup4"
script: ./tools/travis/nightly.sh split_checkpoints.sh
name: e2e - checkpoints - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup5"
script: ./tools/travis/nightly.sh split_container.sh
name: e2e - container - hadoop 2.8
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup6"
script: ./tools/travis/nightly.sh split_heavy.sh
name: e2e - heavy - hadoop 2.8
# E2E profiles - Scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -De2e-metrics"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -De2e-metrics -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup1"
script: ./tools/travis/nightly.sh split_misc.sh
name: e2e - misc - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup2"
script: ./tools/travis/nightly.sh split_ha.sh
name: e2e - ha - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup3"
script: ./tools/travis/nightly.sh split_sticky.sh
name: e2e - sticky - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup4"
script: ./tools/travis/nightly.sh split_checkpoints.sh
name: e2e - checkpoints - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup5"
script: ./tools/travis/nightly.sh split_container.sh
name: e2e - container - scala 2.12
- if: type = cron
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12"
env: PROFILE="-Dinclude-hadoop -Dhadoop.version=2.8.3 -Dscala-2.12 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup6"
script: ./tools/travis/nightly.sh split_heavy.sh
name: e2e - heavy - scala 2.12
# E2E profiles - Hadoop-free
- if: type = cron
env: PROFILE="-De2e-metrics"
env: PROFILE="-De2e-metrics -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup1"
script: ./tools/travis/nightly.sh split_misc_hadoopfree.sh
name: e2e - misc
- if: type = cron
env: PROFILE=""
env: PROFILE="-DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup2"
script: ./tools/travis/nightly.sh split_ha.sh
name: e2e - ha
- if: type = cron
env: PROFILE=""
env: PROFILE="-DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup3"
script: ./tools/travis/nightly.sh split_sticky.sh
name: e2e - sticky
- if: type = cron
env: PROFILE=""
env: PROFILE="-DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup4"
script: ./tools/travis/nightly.sh split_checkpoints.sh
name: e2e - checkpoints
- if: type = cron
env: PROFILE=""
env: PROFILE="-DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup5"
script: ./tools/travis/nightly.sh split_container.sh
name: e2e - container
- if: type = cron
env: PROFILE=""
env: PROFILE="-DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup6"
script: ./tools/travis/nightly.sh split_heavy.sh
name: e2e - heavy
# E2E profiles - Java 11
- if: type = cron
stage: test
jdk: "openjdk11"
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3 -De2e-metrics"
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3 -De2e-metrics -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup1"
script: ./tools/travis/nightly.sh split_misc.sh
name: e2e - misc - jdk11
- if: type = cron
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup2"
script: ./tools/travis/nightly.sh split_ha.sh
name: e2e - ha - jdk11
- if: type = cron
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup3"
script: ./tools/travis/nightly.sh split_sticky.sh
name: e2e - sticky - jdk 11
- if: type = cron
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup4"
script: ./tools/travis/nightly.sh split_checkpoints.sh
name: e2e - checkpoints - jdk 11
- if: type = cron
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3"
env: PROFILE="-Djdk11 -Dinclude-hadoop -Dhadoop.version=2.8.3 -DincludeE2E=org.apache.flink.tests.util.categories.TravisGroup6"
script: ./tools/travis/nightly.sh split_heavy.sh
name: e2e - heavy - jdk 11
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Dummy marker interface used for excluding all other groups.
*/
public interface Dummy {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Marker interface for tests that require Hadoop.
*/
public interface Hadoop {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Marker interface for tests that should be run on every commit.
*/
public interface PreCommit {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Marker interface for tests that should be run in the first build on Travis.
*/
public interface TravisGroup1 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Marker interface for tests that should be run in the second build on Travis.
*/
public interface TravisGroup2 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Marker interface for tests that should be run in the third build on Travis.
*/
public interface TravisGroup3 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Marker interface for tests that should be run in the fourth build on Travis.
*/
public interface TravisGroup4 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Marker interface for tests that should be run in the fifth build on Travis.
*/
public interface TravisGroup5 {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http:https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.flink.tests.util.categories;

/**
* Marker interface for tests that should be run in the sixth build on Travis.
*/
public interface TravisGroup6 {
}
Loading

0 comments on commit 499fe56

Please sign in to comment.