-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (23 loc) · 988 Bytes
/
.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
# For more information about the configurations used
# in this file, please see the Travis CI documentation.
# .travis.yml
# https://docs.travis-ci.com
sudo: required
language: bash
env:
matrix:
- OS_TYPE=centos OS_VERSION=7
services:
- docker
before_install:
- sudo apt-get update -q
- echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null
- sudo service docker restart; sleep 5
- sudo docker run --privileged -it -v /sys/fs/cgroup:/sys/fs/cgroup -d --name=centos7 -e TZ=America/New_York -e PATH=$PATH --restart always --entrypoint /sbin/init centos:7
script:
- sudo docker exec -it centos7 bash -c "yum install -q -yy @base; yum update -q -yy; yum install -q -yy curl git net-tools"
- sudo docker exec -it centos7 bash -c "$(bash -c $(curl -LSs https://github.com/pkmgr/centos/raw/main/scripts/default.sh))"
notifications:
email:
on_failure: never
on_success: never