-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
43 lines (42 loc) · 1.07 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
language: python
python: '2.7'
sudo: required
dist: trusty
services:
- docker
git:
submodules: false
before_install:
- git submodule update --init --recursive
- git submodule foreach git pull origin master
- sudo apt-get update -qq
- sudo apt-get install -qq squashfs-tools uuid python-apt python-pycurl btrfs-tools
install:
- sudo pip install ansible
- sudo pip install docker
script:
- cp -R roles/* squashible/roles/
- cp squashible.yml squashible/
- cd squashible
- sudo ansible-playbook -i hosts_generator.py squashible.yml -e "live_os=centos_7"
-e "rootfs_size=2G"
- ls -lah live_output
- sudo chown -R travis:travis live_output
- cd live_output
- cp * ../../
- cd ../../
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "Antony Messerli"
- git config --local user.email "[email protected]"
- git tag "$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file:
- vmlinuz
- initrd.img
- rootfs.img
on:
repo: rcbops/rpc-deploy-utility-image
skip_cleanup: true