-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- removes Travis config - adds "Docker 18.x" and "Docker over TCP" to GHA Build Matrix - adds ciMate - Fixes Swarm tests
- Loading branch information
Showing
27 changed files
with
338 additions
and
404 deletions.
There are no files selected for viewing
File renamed without changes.
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,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exu | ||
|
||
DOCKER_VERSION="${DOCKER_VERSION:-}" | ||
DOCKER_HOST="${DOCKER_HOST:-}" | ||
|
||
if [[ -n $DOCKER_VERSION ]]; then | ||
sudo -E apt-get -q -y --purge remove docker-engine docker-ce | ||
|
||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
sudo apt-get update | ||
sudo apt-cache madison docker-ce | ||
sudo apt-get install "docker-ce=$DOCKER_VERSION" | ||
fi | ||
|
||
if [[ -n $DOCKER_HOST ]]; then | ||
sudo mkdir -p /etc/systemd/system/docker.service.d/ | ||
|
||
echo " | ||
[Service] | ||
ExecStart= | ||
ExecStart=/usr/bin/dockerd -H $DOCKER_HOST | ||
" | sudo tee -a /etc/systemd/system/docker.service.d/override.conf | ||
|
||
sudo systemctl daemon-reload | ||
sudo service docker restart || sudo journalctl -xe | ||
sudo service docker status | ||
fi | ||
|
||
while (! docker ps ); do | ||
echo "Waiting for Docker to launch..." | ||
sleep 1 | ||
done | ||
docker version | ||
docker info | ||
|
||
docker run --rm hello-world |
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 |
---|---|---|
@@ -1,18 +1,41 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
on: | ||
pull_request: {} | ||
push: { branches: [ master ] } | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { name: "default" } | ||
- { name: "over TCP", dockerHost: "tcp://127.0.0.1:2375" } | ||
- { name: "Docker 18.06.3", dockerVersion: "18.06.3~ce~3-0~ubuntu" } | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Prepare ws | ||
run: rm -f "docker-java/src/test/resources/logback.xml" && mv "docker-java/src/test/resources/travis-logback.xml" "docker-java/src/test/resources/logback-test.xml" | ||
- name: Build with Maven | ||
run: ./mvnw --no-transfer-progress verify | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Configure Docker | ||
env: | ||
DOCKER_VERSION: ${{matrix.dockerVersion}} | ||
DOCKER_HOST: ${{matrix.dockerHost}} | ||
run: .ci/setup_docker.sh | ||
- name: Build with Maven | ||
env: | ||
DOCKER_HOST: ${{matrix.dockerHost}} | ||
run: ./mvnw --no-transfer-progress verify | ||
- name: Aggregate test reports with ciMate | ||
if: always() | ||
env: | ||
CIMATE_PROJECT_ID: lodr9d83 | ||
CIMATE_CI_KEY: "CI / ${{matrix.name}}" | ||
run: | | ||
wget -q https://get.cimate.io/release/linux/cimate | ||
chmod +x cimate | ||
./cimate "**/TEST-*.xml" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.