Adding .gitlab-ci.yml file. Commenting unused code to be able to build the binary in CI.
This commit is contained in:
parent
6d139c9a16
commit
914d692b3a
9
.gitlab-ci.yml
Normal file
9
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
image: "go:1"
|
||||
|
||||
build:
|
||||
script:
|
||||
- go build .
|
||||
- ./magnetico-go-migrator --help
|
||||
artifacts:
|
||||
paths:
|
||||
- magnetico-go-migrator
|
|
@ -4,7 +4,6 @@ import (
|
|||
"database/sql"
|
||||
"fmt"
|
||||
"github.com/boramalper/magnetico/pkg/persistence"
|
||||
"github.com/cheggaaa/pb/v3"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
"go.uber.org/zap"
|
||||
"gopkg.in/alecthomas/kingpin.v2"
|
||||
|
@ -47,12 +46,12 @@ func main() {
|
|||
}
|
||||
|
||||
func process(pyDb sql.DB, goDb persistence.Database) error {
|
||||
torrentsTotal, err := getNumberOfTorrents(pyDb)
|
||||
if err != nil {
|
||||
zap.L().Panic("Couldn't count torrents", zap.Error(err))
|
||||
}
|
||||
|
||||
bar := pb.StartNew(int(torrentsTotal))
|
||||
//torrentsTotal, err := getNumberOfTorrents(pyDb)
|
||||
//if err != nil {
|
||||
// zap.L().Panic("Couldn't count torrents", zap.Error(err))
|
||||
//}
|
||||
//
|
||||
//bar := pb.StartNew(int(torrentsTotal))
|
||||
|
||||
// TODO
|
||||
|
||||
|
|
Reference in a new issue