Skip to content

Commit 007f668

Browse files
committed
run codecov only on one run
1 parent 31d5627 commit 007f668

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ env:
2121
- COVERITY_SCAN_NOTIFICATION_EMAIL="kanstantsin.sha@gmail.com"
2222

2323
matrix:
24-
- repo="main" DOCKER_HOST="tcp://127.0.0.1:2375" DOCKER_VERSION="1.11.2-0~trusty" DEPLOY=true FAST_BUILD=true COVERITY=true
25-
- repo="main" DOCKER_HOST="tcp://127.0.0.1:2375" DOCKER_VERSION="1.11.2-0~trusty"
24+
- repo="main" DOCKER_HOST="tcp://127.0.0.1:2375" DOCKER_VERSION="1.11.2-0~trusty" DEPLOY=true COVERITY=true CODECOV=true
2625
- repo="main" DOCKER_HOST="unix:///var/run/docker.sock" DOCKER_VERSION="1.11.2-0~trusty"
2726
- repo="main" DOCKER_HOST="unix:///var/run/docker.sock" DOCKER_VERSION="1.10.3-0~trusty"
2827
# - repo="testing" DOCKER_HOST="tcp://127.0.0.1:2375"

.travis/travis-after-success.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/env bash
22

3+
if [[ $CODECOV == "true" ]]; then
4+
codecov
5+
fi
36

4-
codecov
57
if [[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $DEPLOY == "true" ]];
68
then
79
cat <<EOF >> ~/settings.xml

.travis/travis-before-install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ sudo -E apt-cache policy docker-engine
2828
# sudo apt-get -f install
2929
# sudo dpkg -i "$(ls *${DOCKER_VERSION}*)"
3030
#popd
31-
#rm -f "src/test/resources/logback.xml"
32-
mv "src/test/resources/travis-logback.xml" "src/test/resources/logback.xml"
31+
3332

3433
echo 'DOCKER_OPTS="-H=unix:///var/run/docker.sock -H=tcp://127.0.0.1:2375"' | sudo tee -a /etc/default/docker
3534
sudo -E restart docker

src/test/java/com/github/dockerjava/core/command/PushImageCmdImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import com.github.dockerjava.api.command.CreateContainerResponse;
2020
import com.github.dockerjava.client.AbstractDockerClientTest;
2121

22-
@Test(groups = "integration-auth")
22+
@Test(groups = {"integration-auth", "integration"})
2323
public class PushImageCmdImplTest extends AbstractDockerClientTest {
2424

2525
public static final Logger LOG = LoggerFactory.getLogger(PushImageCmdImplTest.class);

src/test/java/com/github/dockerjava/netty/exec/PushImageCmdExecTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import com.github.dockerjava.core.command.PushImageResultCallback;
2222
import com.github.dockerjava.netty.AbstractNettyDockerClientTest;
2323

24-
@Test(groups = "integration-auth")
24+
@Test(groups = {"integration", "integration-auth"})
2525
public class PushImageCmdExecTest extends AbstractNettyDockerClientTest {
2626

2727
public static final Logger LOG = LoggerFactory.getLogger(PushImageCmdExecTest.class);

0 commit comments

Comments
 (0)