Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
f4e466f5
Commit
f4e466f5
authored
7 years ago
by
Chelsea Holland Komlo
Browse files
Options
Download
Email Patches
Plain Diff
exclude integration tests from main build
parent
aa410d05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
e2e/migrations/docker-run.sh
+4
-1
e2e/migrations/docker-run.sh
e2e/migrations/migrations_test.go
+8
-0
e2e/migrations/migrations_test.go
with
12 additions
and
1 deletion
+12
-1
e2e/migrations/docker-run.sh
+
4
-
1
View file @
f4e466f5
CURRENT_DIRECTORY
=
`
pwd
`
docker run
--privileged
-v
$CURRENT_DIRECTORY
:/gopkg/src/github.com/hashicorp/nomad
-it
nomad-e2e /bin/bash
-c
"cd gopkg/src/github.com/hashicorp/nomad/e2e/migrations && go test"
docker run
--privileged
-v
\
$CURRENT_DIRECTORY
:/gopkg/src/github.com/hashicorp/nomad
\
-it
nomad-e2e /bin/bash
\
-c
"cd gopkg/src/github.com/hashicorp/nomad/e2e/migrations && go test -integration"
This diff is collapsed.
Click to expand it.
e2e/migrations/migrations_test.go
+
8
-
0
View file @
f4e466f5
...
...
@@ -2,6 +2,7 @@ package e2e
import
(
"bytes"
"flag"
"io/ioutil"
"os"
"os/exec"
...
...
@@ -12,6 +13,8 @@ import (
"github.com/stretchr/testify/assert"
)
var
integration
=
flag
.
Bool
(
"integration"
,
false
,
"run integration tests"
)
const
sleepJobOne
=
`job "sleep" {
type = "batch"
datacenters = ["dc1"]
...
...
@@ -139,6 +142,11 @@ func startCluster(clusterConfig []string) (func(), error) {
}
func
TestJobMigrations
(
t
*
testing
.
T
)
{
flag
.
Parse
()
if
!*
integration
{
t
.
Skip
(
"skipping test in non-integration mode."
)
}
t
.
Parallel
()
assert
:=
assert
.
New
(
t
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help