mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
Set up CI with Azure Pipelines (#862)
* Set up CI with Azure Pipelines * trial & error * use robocopy * fix slash * handle robocopy exit code * rm goroot * build proxy * build & test proxy * Skip Test_checkFilePerms on Win until issue resolved * start minio and mongo * do not create a new network on win 2016 * use win docker img for mongo * download and start minio since there is no win docker img * fix minio download & exec * add minio access key and secret * use new mongodb img * fix docker-compose mongo * trying to fix mongo tests * ipconfig * lets try that * use docker inspect to get the container ip * echo mongo container ip * debuging docker inspect ipaddress * set mongo env var to internal addr * debug * quotation is difficult * without docker * pass db dir * split steps * add some echos to know what takes so long * cleanup * add downloadURL var for minio and mongo * rm windows docker compose file
This commit is contained in:
committed by
Manu Gupta
parent
329c86b843
commit
1984dbdaaf
@@ -4,6 +4,7 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
@@ -297,6 +298,12 @@ func restoreEnv(envVars map[string]string) {
|
||||
}
|
||||
|
||||
func Test_checkFilePerms(t *testing.T) {
|
||||
// TODO: os.Chmod(..) doesn't work on Windows as it does on Unix
|
||||
// Skip for now
|
||||
// issue: https://github.com/gomods/athens/issues/879
|
||||
if runtime.GOOS == "windows" {
|
||||
t.SkipNow()
|
||||
}
|
||||
f1, err := ioutil.TempFile(os.TempDir(), "prefix-")
|
||||
if err != nil {
|
||||
t.FailNow()
|
||||
|
||||
Reference in New Issue
Block a user