diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..87a5a2f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,9 @@ +image: "go:1" + +build: + script: + - go build . + - ./magnetico-go-migrator --help + artifacts: + paths: + - magnetico-go-migrator diff --git a/magnetico-migrator.go b/magnetico-migrator.go index 0e85c40..6c38d99 100644 --- a/magnetico-migrator.go +++ b/magnetico-migrator.go @@ -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