-
-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging latest master into release for release 0.18.0
- Loading branch information
Showing
79 changed files
with
4,685 additions
and
730 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Test Bats | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
name: Bats tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest ] | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
role-duration-seconds: 3600 | ||
- name: Setup Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
id: go | ||
- name: Setup Python 3.x | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ^3.6 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ^12 | ||
- name: Create CI Bin | ||
run: | | ||
mkdir -p ./.ci_bin | ||
echo "::add-path::$(pwd)/.ci_bin" | ||
- name: Install Bats | ||
run: | | ||
npm i bats | ||
echo "::add-path::$(pwd)/node_modules/.bin" | ||
working-directory: ./.ci_bin | ||
- name: Install Doltpy | ||
run: | | ||
python3 -m pip install --upgrade pip | ||
pip install doltpy | ||
- name: Install Dolt | ||
working-directory: ./go | ||
run: | | ||
go build -mod=readonly -o ../.ci_bin/dolt ./cmd/dolt/. | ||
go build -mod=readonly -o ../.ci_bin/git-dolt ./cmd/git-dolt/. | ||
go build -mod=readonly -o ../.ci_bin/git-dolt-smudge ./cmd/git-dolt-smudge/. | ||
go build -mod=readonly -o ../.ci_bin/remotesrv ./utils/remotesrv/. | ||
- name: Setup Dolt Config | ||
run: | | ||
dolt config --global --add user.name 'Liquidata Actions' | ||
dolt config --global --add user.email '[email protected]' | ||
- name: Install expect | ||
if: matrix.os == 'ubuntu-latest' | ||
run: sudo apt-get install -y expect | ||
- name: Check expect | ||
run: expect -v | ||
- name: Test all | ||
run: | | ||
bats --tap . | ||
working-directory: ./bats | ||
env: | ||
AWS_SDK_LOAD_CONFIG: "1" | ||
AWS_REGION: "us-west-2" | ||
DOLT_BATS_AWS_TABLE: "dolt-ci-bats-manifests-us-west-2" | ||
DOLT_BATS_AWS_BUCKET: "dolt-ci-bats-chunks-us-west-2" | ||
DOLT_BATS_AWS_EXISTING_REPO: "aws_remote_bats_tests" |
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,32 @@ | ||
name: Check Formatting and Commiters | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
verify: | ||
name: Verify format and commiters | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
id: go | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check all | ||
working-directory: ./go | ||
# Keep this in sync with //go/utils/prepr/prepr.sh. | ||
run: | | ||
GOFLAGS="-mod=readonly" go build ./... | ||
./utils/repofmt/check_fmt.sh | ||
./Godeps/verify.sh | ||
./utils/checkcommitters/check_pr.sh | ||
go vet -mod=readonly ./... | ||
go run -mod=readonly ./utils/copyrightshdrs/ | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref }} | ||
CHANGE_TARGET: ${{ github.base_ref }} |
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,44 @@ | ||
name: Check Compatibility | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
name: Compatibility Test | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
steps: | ||
- name: Setup Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
id: go | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ^12 | ||
- name: Create CI Bin | ||
run: | | ||
mkdir -p ./.ci_bin | ||
echo "::add-path::$(pwd)/.ci_bin" | ||
- name: Install Bats | ||
run: | | ||
npm i bats | ||
echo "::add-path::$(pwd)/node_modules/.bin" | ||
working-directory: ./.ci_bin | ||
- name: Install Dolt | ||
working-directory: ./go | ||
run: | | ||
go build -mod=readonly -o ../.ci_bin/dolt ./cmd/dolt/. | ||
- name: Setup Dolt Config | ||
run: | | ||
dolt config --global --add user.name 'Liquidata Actions' | ||
dolt config --global --add user.email '[email protected]' | ||
- name: Test all | ||
run: ./runner.sh | ||
working-directory: ./bats/compatibility |
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,24 @@ | ||
name: Test Go | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
name: Go tests | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
steps: | ||
- name: Set up Go 1.x | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.13 | ||
id: go | ||
- uses: actions/checkout@v2 | ||
- name: Test All | ||
working-directory: ./go | ||
run: go test ./... |
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 |
---|---|---|
|
@@ -3,62 +3,6 @@ pipeline { | |
stages { | ||
stage('Test') { | ||
parallel { | ||
stage ("go/") { | ||
agent { | ||
kubernetes { | ||
label "liquidata-inc-ld-build" | ||
} | ||
} | ||
environment { | ||
PATH = "${pwd()}/.ci_bin:${env.HOME}/go/bin:${env.PATH}" | ||
} | ||
steps { | ||
dir ("go") { | ||
// Keep this in sync with //go/utils/prepr/prepr.sh. | ||
sh "go get -mod=readonly ./..." | ||
sh "./utils/repofmt/check_fmt.sh" | ||
sh "./Godeps/verify.sh" | ||
sh "./utils/checkcommitters/check_pr.sh" | ||
sh "go vet -mod=readonly ./..." | ||
sh "go run -mod=readonly ./utils/copyrightshdrs/" | ||
sh "go test -mod=readonly -test.v ./..." | ||
} | ||
} | ||
} | ||
stage ("bats/") { | ||
agent { | ||
kubernetes { | ||
label "liquidata-inc-ld-build" | ||
} | ||
} | ||
environment { | ||
PATH = "${pwd()}/.ci_bin/pyenv/bin:${pwd()}/.ci_bin:${pwd()}/.ci_bin/node_modules/.bin:${env.PATH}" | ||
AWS_SDK_LOAD_CONFIG = "1" | ||
AWS_REGION = "us-west-2" | ||
DOLT_BATS_AWS_TABLE = "dolt-ci-bats-manifests-us-west-2" | ||
DOLT_BATS_AWS_BUCKET = "dolt-ci-bats-chunks-us-west-2" | ||
DOLT_BATS_AWS_EXISTING_REPO = "aws_remote_bats_tests" | ||
} | ||
steps { | ||
dir (".ci_bin") { | ||
sh "npm i bats" | ||
} | ||
dir ("go") { | ||
sh "go get -mod=readonly ./..." | ||
sh "go build -mod=readonly -o ../.ci_bin/dolt ./cmd/dolt/." | ||
sh "go build -mod=readonly -o ../.ci_bin/git-dolt ./cmd/git-dolt/." | ||
sh "go build -mod=readonly -o ../.ci_bin/git-dolt-smudge ./cmd/git-dolt-smudge/." | ||
sh "go build -mod=readonly -o ../.ci_bin/remotesrv ./utils/remotesrv/." | ||
} | ||
sh "python3 -m venv .ci_bin/pyenv" | ||
sh "./.ci_bin/pyenv/bin/pip install doltpy" | ||
sh "dolt config --global --add user.name 'Liquidata Jenkins'" | ||
sh "dolt config --global --add user.email '[email protected]'" | ||
dir ("bats") { | ||
sh "bats ." | ||
} | ||
} | ||
} | ||
stage ("Windows") { | ||
agent { | ||
label "windows" | ||
|
@@ -89,30 +33,6 @@ pipeline { | |
} | ||
} | ||
} | ||
stage ("compatibility/") { | ||
agent { | ||
kubernetes { | ||
label "liquidata-inc-ld-build" | ||
} | ||
} | ||
environment { | ||
PATH = "${pwd()}/.ci_bin:${pwd()}/.ci_bin/node_modules/.bin:${env.PATH}" | ||
} | ||
steps { | ||
dir (".ci_bin") { | ||
sh "npm i bats" | ||
} | ||
dir ("go") { | ||
sh "go get -mod=readonly ./..." | ||
sh "go build -mod=readonly -o ../.ci_bin/dolt ./cmd/dolt/." | ||
} | ||
sh "dolt config --global --add user.name 'Liquidata Jenkins'" | ||
sh "dolt config --global --add user.email '[email protected]'" | ||
dir ("bats/compatibility") { | ||
sh "./runner.sh" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
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.