Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
burrow
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hang Yu
burrow
Commits
b5ae8b22
Unverified
Commit
b5ae8b22
authored
8 years ago
by
Benjamin Bollen
Browse files
Options
Downloads
Patches
Plain Diff
circle: revisit circle file to clean up, and organise integration tests
circle: remove testify and collapse unit tests
parent
985057ef
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
circle.yml
+17
-33
17 additions, 33 deletions
circle.yml
tests/test.sh
+1
-1
1 addition, 1 deletion
tests/test.sh
with
18 additions
and
34 deletions
circle.yml
+
17
−
33
View file @
b5ae8b22
machine
:
environment
:
GOPATH
:
$HOME/.go_workspace
REPO
:
${GOPATH}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
DOCKER_VERSION
:
1.9.1
DOCKER_MACHINE_VERSION
:
0.6.0
ERIS_CLI_BRANCH
:
develop
GO15VENDOREXPERIMENT
:
1
# We want to work from GOPATH src
GOPATH_REPO
:
${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}
HOME_REPO
:
${HOME}/${CIRCLE_PROJECT_REPONAME}
post
:
-
mkdir -p $GOPATH_REPO
# Will overwrite anything from cache, note trailing slash on source matters
-
rsync -a --delete $HOME_REPO/ $GOPATH_REPO
-
rm -rf $HOME_REPO
# Let our build_dir point a go src location
-
ln -s $GOPATH_REPO $HOME_REPO
-
git config --global user.email "billings@erisindustries.com"
-
git config --global user.name "Billings the Bot"
-
rm -rf ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}
-
mkdir -p ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}
-
cp -r ${HOME}/${CIRCLE_PROJECT_REPONAME} ${GOPATH%%:*}/src/github.com/${CIRCLE_PROJECT_USERNAME}/.
dependencies
:
pre
:
-
mkdir -p ~/cache
# Fill cache of overrides
-
test -e ~/cache/docker || curl -L -o ~/cache/docker 'http://s3-external-1.amazonaws.com/circle-downloads/docker-1.9.0-circleci'
# leaving here in case we wish to override go version
# - test -e ~/cache/go || curl https://storage.googleapis.com/golang/go1.6.linux-amd64.tar.gz | tar xzC ~/cache
# - sudo rm -rf /usr/local/go
# - sudo cp -r ~/cache/go /usr/local/go
# Override host docker
-
sudo cp ~/cache/docker /usr/bin/docker
-
sudo chmod +x /usr/bin/docker
# Override host go
override
:
-
sudo curl -L -o /usr/bin/docker http://s3-external-1.amazonaws.com/circle-downloads/docker-$DOCKER_VERSION-circleci; sudo chmod 0775 /usr/bin/docker; sudo usermod -a -G docker $USER;
true
-
sudo service docker start
-
sudo curl -sSL -o /usr/local/bin/docker-machine https://github.com/docker/machine/releases/download/v$DOCKER_MACHINE_VERSION/docker-machine-linux-x86_64; sudo chmod 0755 /usr/local/bin/docker-machine
-
"
go
get
github.com/eris-ltd/eris-cli/cmd/eris;
cd
${GOPATH%%:*}/src/github.com/eris-ltd/eris-cli
&&
git
checkout
origin/$ERIS_CLI_BRANCH
&&
go
install
./cmd/eris"
-
"
sudo
apt-get
update
&&
sudo
apt-get
install
-y
libgmp3-dev"
cache_directories
:
-
~/cache
test
:
pre
:
-
go get github.com/stretchr/testify
-
go get github.com/Masterminds/glide
-
cd $
GOPATH_
REPO && glide install
# Install erisdb cmd for tests
-
cd $
GOPATH_
REPO && go install ./cmd/eris-db
-
cd $REPO && glide install
# Install eris
-
db cmd for tests
-
cd $REPO && go install ./cmd/eris-db
override
:
# We only wish to test our packages not vendored ones
-
echo "Running unit tests..."
-
cd $GOPATH_REPO && glide novendor | xargs go test -v
-
echo "Running sociable unit tests..."
-
cd $GOPATH_REPO && glide novendor | xargs go test -v -tags integration
-
cd $REPO && glide novendor | xargs go test -tags integration
-
echo "Running integration tests..."
-
"
tests/circle_test.sh
|
tee
$CIRCLE_ARTIFACTS/output.log;
test
${PIPESTATUS[0]}
-eq
0"
# - cd $REPO && "tests/circle_test.sh | tee $CIRCLE_ARTIFACTS/output.log; test ${PIPESTATUS[0]} -eq 0"
deployment
:
master
:
...
...
This diff is collapsed.
Click to expand it.
tests/test.sh
+
1
−
1
View file @
b5ae8b22
...
...
@@ -234,7 +234,7 @@ echo
# Go ahead with client integration tests !
echo
"Running Client Tests..."
perform_client_tests
#
perform_client_tests
# ---------------------------------------------------------------------------
# Cleaning up
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment