Skip to content

Commit c50a2d0

Browse files
committed
migrate to circle 2
1 parent f83e955 commit c50a2d0

File tree

2 files changed

+34
-26
lines changed

2 files changed

+34
-26
lines changed

.circleci/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

circle.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)