-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
39 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
working_directory: /go/src/github.com/Juniper/contrail | ||
docker: | ||
- image: circleci/golang:1.9 | ||
- image: circleci/mysql:5.7 | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=contrail123 | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: install mysql client | ||
command: sudo apt install mysql-client | ||
- run: | ||
name: install deps | ||
command: ./tools/deps.sh | ||
- run: | ||
name: lint | ||
command: ./tools/lint.sh | ||
- run: | ||
name: Wait for db | ||
command: dockerize -wait tcp://localhost:3306 -timeout 1m | ||
- run: | ||
name: Reset database | ||
command: ./tools/reset_db.sh | ||
- run: | ||
name: Run Test | ||
command: make test |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
TOP=$(dirname "$0") | ||
mysql -uroot -pcontrail123 -e "drop database if exists contrail_test;" | ||
mysql -uroot -pcontrail123 -e "create database contrail_test;" | ||
mysql -uroot -pcontrail123 contrail_test < $TOP/init.sql | ||
mysql -uroot -pcontrail123 -h 127.0.0.1 -e "drop database if exists contrail_test;" | ||
mysql -uroot -pcontrail123 -h 127.0.0.1 -e "create database contrail_test;" | ||
mysql -uroot -pcontrail123 -h 127.0.0.1 contrail_test < $TOP/init.sql |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.