summaryrefslogtreecommitdiffstats
path: root/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/TestOnCiBuildingSystemOnly.java
blob: 44e0d723f7c498112c33092a33e83d6683def61d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.http.client;

import org.junit.Before;


public class TestOnCiBuildingSystemOnly {
    private static final String CI_BUILD_SYSTEN_ENV = "CI";
    private static final String CI_BUILD_SYSTEM_ENABLED_VALUE = "true";

    @Before
    public void beforeMethod() {
        org.junit.Assume.assumeTrue(CI_BUILD_SYSTEM_ENABLED_VALUE.equals(System.getenv(CI_BUILD_SYSTEN_ENV)));
    }
}