Start docker service after installation #298
Closed
Travis CI / Travis CI - Branch
succeeded
Jun 25, 2024 in 11m 24s
Build Passed
The build passed.
Details
This is a normal build for the start-docker branch. You should be able to reproduce it by checking out the branch locally.
Jobs and Stages
This build has two jobs, running in parallel.
Job | Go | ENV | OS | State |
---|---|---|---|---|
961.1 Coverage | 1.20.x | Linux | passed | |
961.2 Docker and Integration Tests | 1.20.x | TAG=`if [ $TRAVIS_BRANCH == "master" ]; then echo -n latest; else echo -n $TRAVIS_BRANCH; fi` | Linux | passed |
Build Configuration
Build Option | Setting |
---|---|
Language | Go |
Operating System | Linux (Xenial) |
Go Version | 1.20.x |
Build Configuration
{
"language": "go",
"os": [
"linux"
],
"dist": "xenial",
"go": [
"1.20.x"
],
"addons": {
"apt": {
"update": true,
"packages": [
"ruby"
]
}
},
"jobs": {
"include": [
{
"name": "Coverage",
"os": "linux",
"dist": "jammy",
"install": [
"sudo gem install coveralls-lcov",
"go install github.com/jandelgado/gcov2lcov@latest",
"curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.2",
"go get ./..."
],
"script": [
"go build -ldflags=\"-X main.Commit=$(git rev-parse HEAD)\" cmd/koinos-p2p/main.go",
"go test -v github.com/koinos/koinos-p2p/internal -coverprofile=internal.out -coverpkg=./internal/...",
"go test -v github.com/koinos/koinos-p2p/internal/node -coverprofile=node.out -coverpkg=./internal/...",
"go test -v github.com/koinos/koinos-p2p/internal/p2p -coverprofile=p2p.out -coverpkg=./internal/...",
"gcov2lcov -infile=internal.out -outfile=internal.info",
"gcov2lcov -infile=node.out -outfile=node.info",
"gcov2lcov -infile=p2p.out -outfile=p2p.info",
"golangci-lint run ./..."
],
"after_success": [
"coveralls-lcov --repo-token \"$COVERALLS_REPO_TOKEN\" --service-name travis-pro coverage.info"
]
},
{
"name": "Docker and Integration Tests",
"os": "linux",
"dist": "jammy",
"services": [
"docker"
],
"env": [
{
"TAG": "`if [ $TRAVIS_BRANCH == \"master\" ]; then echo -n latest; else echo -n $TRAVIS_BRANCH; fi`"
},
{
"P2P_TAG": "$TAG"
}
],
"before_install": [
"sudo systemctl stop docker.service && sudo systemctl stop docker.socket",
"sudo apt-get install ca-certificates curl",
"sudo install -m 0755 -d /etc/apt/keyrings",
"sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc",
"sudo chmod a+r /etc/apt/keyrings/docker.asc",
"echo \\\n \"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \\\n $(. /etc/os-release && echo \"$VERSION_CODENAME\") stable\" | \\\n sudo tee /etc/apt/sources.list.d/docker.list > /dev/null\n",
"sudo apt-get update"
],
"install": [
"sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin",
"sudo systemctl start docker.service && sudo systemctl start docker.socket",
"git clone https://github.com/koinos/koinos-integration-tests.git",
"pushd koinos-integration-tests",
"go get ./...",
"popd"
],
"before_script": [
"echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin",
"docker build . -t $TRAVIS_REPO_SLUG:$TAG"
],
"script": [
"pushd koinos-integration-tests",
"./run.sh"
],
"after_success": [
"if [ \"$TRAVIS_PULL_REQUEST\" = \"false\" ]; then\n docker push $TRAVIS_REPO_SLUG:$TAG\nfi\n"
]
}
]
},
"notifications": {
"slack": [
{
"rooms": [
{
"secure": "uLagb4g9pgxtO6pa+ReiRLXdAwSLv39W4BUi5/5Ury27JGZn2zobPhOcsGglbGwH2QTGomoTLJ4VU/wWLnYSrb5lRYhRYBgpmi0BVIqXrCDGEa7QWIlwtM9sY5nrSGB3CqsUZh0M/5etTJkcD281VVQ1qiowWIykKrkcN73WqGssJJqRU/Gu2eyqDmWar7ymDrKSjsmQw0nFGJwhDTrFIg9F6h81OaHsEk+A0A8V6ldZ2FcucKJGeta6hnh1UUKBnHitj0FUMIBW+lxKqm86Y3U1RFAKYS7GIBnQLdhpH2x5I36+kkGFgp1ZUg4KRy59Fh3D75HF4yxA4jp94cTPUAxSufYH+kcC9b2KCbKuCNeHlpMf1sHD3BxEFD7kRERjvSSzIl2Je4DgUO8eiqruMBe5GPkoQ8QQkzi0Kh02+mCx5G8IfiivRrgjvVGFl8+IXokIEeeTCYrZT7qeO1hashro/CDXFx318sPcA4FYQ9ToDhuWuKiLFyPYO3wua78nyQCZlX1x7FQrgEBc6MFfMAwi+aiGU+pu9t7gmcnLIOO2yuOpkksanIIVZ9jaTmJOdw3L0hWmK1dnNhHha3gJydydNA41bLHkoAHaOKTb3rxf4MkSLpiUQeoBkT9PUabxS56J3bd+2sn5DipQ3SsjXrtM1LurBxsiUb11F1y/sdE="
}
],
"on_success": "never"
}
]
}
}
Loading