Skip to content

Commit

Permalink
Merge branch 'dev' into auto-build
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Apr 23, 2021
2 parents 88431c6 + 28e7d2d commit 7d2c903
Show file tree
Hide file tree
Showing 178 changed files with 6,338 additions and 1,655 deletions.
6 changes: 6 additions & 0 deletions .ci/build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ set -ev

cd $TRAVIS_BUILD_DIR
./scripts/build.sh
# Check to see if the build script creates any unstaged changes to prevent
# regression where builds go.mod/go.sum files get out of date.
if [[ -z $(git status -s) ]]; then
echo "Build script created unstaged changes in the repository"
exit 1
fi
./scripts/build_test.sh
2 changes: 1 addition & 1 deletion .ci/run_e2e_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ echo "Using Avalanche Image: $AVALANCHE_IMAGE"

DOCKER_REPO="avaplatform"
BYZANTINE_IMAGE="$DOCKER_REPO/avalanche-byzantine:v0.2.0-rc.1"
TEST_SUITE_IMAGE="$DOCKER_REPO/avalanche-testing:v0.11.0-rc.1"
TEST_SUITE_IMAGE="$DOCKER_REPO/avalanche-testing:v0.11.0-rc.2"

# Kurtosis Environment Parameters
KURTOSIS_CORE_CHANNEL="1.0.3"
Expand Down
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.ci
.git
.github
.gitignore
.golangci.yml
.idea
.vscode

LICENSE
*.md
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ go:

env:
global:
- CODECOV_TOKEN="8c18c993-fc6e-4706-998b-01ddc7987804"
- AVALANCHE_HOME=$GOPATH/src/github.com/$TRAVIS_REPO_SLUG/
- E2E_TEST_HOME=$GOPATH/src/github.com/ava-labs/avalanche-testing/
- COMMIT=${TRAVIS_COMMIT::8}
- DOCKERHUB_REPO=avaplatform/avalanchego
- secure: Ozsv2nUqUVSdiaEovsffCBaGI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f28CVkcWCZy/Vei9EhAwQUyJOug6R/1cSOkcqpovc5yf65dLnpUMb+f4fbMk5Z/YPijJ8VZSFU9ul73re6xcWz9PbxZWqsN2Ubqm6EKRB02gxsLbdl56lHcMl6uawrTUFDoie+alkiqlxP8Ey7Phw43os/lxHq9lQN0bZ2Mkq4LMVc4noa5TQNTNxS/hrAIly7IzZVV0VfiLeHJVT/2BWCUhNqw/jL2lpGTPbH0NqG/wIRAAW9BYDlQKc17vBM9Xvs8g=

jobs:
include:
Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# syntax=docker/dockerfile:experimental

ARG AVALANCHEGO_COMMIT
FROM golang:1.15.5-buster

ARG AVALANCHEGO_COMMIT

RUN mkdir -p /go/src/github.com/ava-labs

WORKDIR $GOPATH/src/github.com/ava-labs/
COPY . avalanchego

WORKDIR $GOPATH/src/github.com/ava-labs/avalanchego
RUN export AVALANCHEGO_COMMIT=$AVALANCHEGO_COMMIT
RUN ./scripts/build.sh

RUN ln -sv $GOPATH/src/github.com/ava-labs/avalanchego/ /avalanchego
5 changes: 3 additions & 2 deletions api/admin/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/gorilla/rpc/v2"

"github.com/ava-labs/avalanchego/api"
"github.com/ava-labs/avalanchego/api/server"
"github.com/ava-labs/avalanchego/chains"
"github.com/ava-labs/avalanchego/ids"
"github.com/ava-labs/avalanchego/snow/engine/common"
Expand All @@ -35,11 +36,11 @@ type Admin struct {
log logging.Logger
performance *Performance
chainManager chains.Manager
httpServer *api.Server
httpServer *server.Server
}

// NewService returns a new admin API service
func NewService(log logging.Logger, chainManager chains.Manager, httpServer *api.Server) (*common.HTTPHandler, error) {
func NewService(log logging.Logger, chainManager chains.Manager, httpServer *server.Server) (*common.HTTPHandler, error) {
newServer := rpc.NewServer()
codec := cjson.NewCodec()
newServer.RegisterCodec(codec, "application/json")
Expand Down
Loading

0 comments on commit 7d2c903

Please sign in to comment.