-
Notifications
You must be signed in to change notification settings - Fork 96
/
.travis.yml
56 lines (55 loc) · 1.63 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
_defaults:
linux: &linux
os: linux
dist: trusty
sudo: required
language: rust
matrix:
include:
- <<: *linux
env: TESTS="cargo alpine badcmd copy cyclic completion generic image network prerequisites readonly uidmap vcs version volumes mixins capsule hardlinking"
- <<: *linux
env: TESTS="inheritance subconfig ubuntu ubuntu_release"
- <<: *linux
env: TESTS="npm pip yarn"
- <<: *linux
env: TESTS="composer gem_bundler gem_bundler_lock"
- os: osx
allow_failures:
- os: osx
install:
- "echo ubuntu-mirror: http://mirrors.us.kernel.org/ubuntu/ > ~/.vagga.yaml"
- "echo alpine-mirror: http://mirrors.gigenet.com/alpinelinux/ >> ~/.vagga.yaml"
- |
set -ex
if [[ $TRAVIS_OS_NAME != osx ]]; then
echo "$(id -un):100000:65536" | sudo tee /etc/subuid | sudo tee /etc/subgid
sudo apt-get install uidmap -y
curl http://files.zerogw.com/vagga/vagga-install-testing.sh | sh
vagga make
vagga _build test
else
brew install md5sha1sum
VAGGA_VERSION=$(git describe) cargo build --no-default-features --features config_runner
fi
set +e
script:
- |
set -ex
if [[ $TRAVIS_OS_NAME != osx ]]; then
vagga _create_netns
tests=($(echo $TESTS))
for test in ${tests[@]}; do
if [[ $test = cargo ]]; then
vagga -E VAGGA_VERSION=v0.0.0-test _run rust-musl cargo test --all
else
vagga \
-E UBUNTU_MIRROR=http://mirrors.us.kernel.org/ubuntu/ \
-E ALPINE_MIRROR=http://mirrors.gigenet.com/alpinelinux/ \
test tests/$test.bats --tap --verbose-run --trace
fi
done
else
./target/debug/vagga _list
fi
set +e