File tree Expand file tree Collapse file tree 2 files changed +34
-26
lines changed Expand file tree Collapse file tree 2 files changed +34
-26
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ jobs :
3
+ build :
4
+ working_directory : /rackspace-toolbox
5
+ docker :
6
+ - image : docker:18.06.1-ce-git
7
+ steps :
8
+ - checkout
9
+ - setup_remote_docker
10
+ - run :
11
+ name : tests
12
+ command : |
13
+ ./drun -x ubuntu:16.04 cat /etc/issue | grep 'Ubuntu 16.04' # should execute command inside container
14
+ ./drun -x docker:1.10.0 docker version # should bind docker.sock
15
+ ./drun -x docker:1.10.0 sh -c './drun -x docker:1.10.0 true' # should do inception in 2 levels
16
+ ./drun -x docker:1.10.0 sh -c './drun -x docker:1.10.0 sh -c "./drun -x docker:1.10.0 true"' # should do inception in 3 levels
17
+ ./drun -x mhart/alpine-node:5.12.0 node --version | grep 'v5.12.0' # should get version of node
18
+ # should read version from package.json
19
+ echo '{"engines":{"node":"8.14.1"}}' > package.json && ./drun -xNA node --version | grep 'v8.14.1'
20
+ echo '{"engines":{"node":"~8.14.1"}}' > package.json && ./drun -xNA node --version | grep 'v8.14.1'
21
+ echo '{"engines":{"node":"^8.14.1"}}' > package.json && ./drun -xNA node --version | grep 'v8.14.1'
22
+ echo '{"engines":{"node":">=8.14.1"}}' > package.json && ./drun -xNA node --version | grep 'v8.14.1'
23
+ echo '{"engines":{"node":">= 8.14.1"}}' > package.json && ./drun -xNA node --version | grep 'v8.14.1'
24
+ echo '{"engines":{"node":"8.14.1"}}' > package.json && ./drun -xNM slim node --version | grep 'v8.14.1'
25
+ echo '{"test":"passing"}' | ./drun -x stedolan/jq '.test' | grep '"passing"' # should pipe into command inside container
26
+ echo '{"test":"passing"}' > test.json && ./drun -x stedolan/jq '.test' test.json | grep '"passing"' # should mount current directory
27
+ ./drun alpine sh -c 'apk update && apk add checkbashisms && checkbashisms -f drun && echo "checkbashisms passed."'
28
+ ./drun -?
29
+
30
+ workflows :
31
+ version : 2
32
+ toolbox :
33
+ jobs :
34
+ - build
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments