Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R4R: added macos integration tests #3152

Merged
merged 6 commits into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 76 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,51 @@
version: 2

defaults: &defaults
defaults: &linux_defaults
working_directory: /go/src/github.com/cosmos/cosmos-sdk
docker:
- image: circleci/golang:1.11.1
environment:
GOBIN: /tmp/workspace/bin


############
#
# Configure macos integration tests

macos_config: &macos_defaults
macos:
xcode: "10.1.0"
working_directory: /Users/distiller/project/src/github.com/cosmos/cosmos-sdk
environment:
GO_VERSION: "1.11.4"

set_macos_env: &macos_env
run:
name: Set environment
command: |
echo 'export PATH=$PATH:$HOME/go/bin' >> $BASH_ENV
echo 'export GOPATH=$HOME/project' >> $BASH_ENV
echo 'export GOBIN=$GOPATH/bin' >> $BASH_ENV
echo 'export PATH=$PATH:$HOME/go/bin:$GOBIN' >> $BASH_ENV

############
#
# Configure docs deployment

docs_update: &docs_deploy
working_directory: ~/repo
docker:
- image: tendermint/docs_deployment
environment:
AWS_REGION: us-east-1


############

jobs:

setup_dependencies:
<<: *defaults
<<: *linux_defaults
steps:
- run: mkdir -p /tmp/workspace/bin
- run: mkdir -p /tmp/workspace/profiles
Expand Down Expand Up @@ -48,7 +76,7 @@ jobs:
- profiles

lint:
<<: *defaults
<<: *linux_defaults
parallelism: 1
steps:
- attach_workspace:
Expand All @@ -72,7 +100,7 @@ jobs:
make test_lint

integration_tests:
<<: *defaults
<<: *linux_defaults
parallelism: 1
steps:
- attach_workspace:
Expand All @@ -91,7 +119,7 @@ jobs:
make test_examples

test_sim_gaia_nondeterminism:
<<: *defaults
<<: *linux_defaults
parallelism: 1
steps:
- attach_workspace:
Expand All @@ -109,7 +137,7 @@ jobs:
make test_sim_gaia_nondeterminism

test_sim_gaia_fast:
<<: *defaults
<<: *linux_defaults
parallelism: 1
steps:
- attach_workspace:
Expand All @@ -127,7 +155,7 @@ jobs:
make test_sim_gaia_fast

test_sim_gaia_import_export:
<<: *defaults
<<: *linux_defaults
parallelism: 1
steps:
- attach_workspace:
Expand All @@ -145,7 +173,7 @@ jobs:
make test_sim_gaia_import_export

test_sim_gaia_simulation_after_import:
<<: *defaults
<<: *linux_defaults
parallelism: 1
steps:
- attach_workspace:
Expand All @@ -163,7 +191,7 @@ jobs:
make test_sim_gaia_simulation_after_import

test_sim_gaia_multi_seed:
<<: *defaults
<<: *linux_defaults
parallelism: 1
steps:
- attach_workspace:
Expand All @@ -181,7 +209,7 @@ jobs:
scripts/multisim.sh 25 TestFullGaiaSimulation

test_cover:
<<: *defaults
<<: *linux_defaults
parallelism: 4
steps:
- attach_workspace:
Expand Down Expand Up @@ -211,7 +239,7 @@ jobs:
path: /tmp/logs

upload_coverage:
<<: *defaults
<<: *linux_defaults
parallelism: 1
steps:
- attach_workspace:
Expand Down Expand Up @@ -271,10 +299,47 @@ jobs:
command: |
chamber exec cosmos-sdk -- start_website_build

macos_ci:
<<: *macos_defaults
steps:
- *macos_env
- run:
name: Install go
command: |
source $BASH_ENV
curl -L -O https://dl.google.com/go/go$GO_VERSION.darwin-amd64.tar.gz
tar -C $HOME -xzf go$GO_VERSION.darwin-amd64.tar.gz
rm go$GO_VERSION.darwin-amd64.tar.gz
go version
- checkout
- run:
name: Install SDK
command: |
source $BASH_ENV
make get_tools
make get_vendor_deps
make install
- run:
name: Integration tests
command:
source $BASH_ENV
make test_cli
- run:
name: Test full gaia simulation
command: |
source $BASH_ENV
make test_sim_gaia_fast

workflows:
version: 2
test-suite:
jobs:
- macos_ci:
filters:
branches:
only:
- master
- develop
- deploy_docs:
filters:
branches:
Expand Down
3 changes: 3 additions & 0 deletions PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ IMPROVEMENTS

* Tendermint

* CI
* \#2498 Added macos CI job to CircleCI


BUG FIXES

Expand Down