-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
54 lines (54 loc) · 3.13 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
language: bash
env:
matrix:
- OS=debian DIST=stretch ARCH=armel
- OS=debian DIST=stretch ARCH=armhf
- OS=raspbian DIST=stretch ARCH=armhf
- OS=debian DIST=buster ARCH=armel
- OS=debian DIST=buster ARCH=armhf
- OS=raspbian DIST=buster ARCH=armhf
global:
- DEBOOTSTRAP=qemu-debootstrap
- NAMESPACE=ev3dev
- secure: iSixWxcGG+BLi0XmkQ3b+4ZQhpPZsEvFdBsorjVG1hnZW26si0OVq9C5fC1HnR6sGvZ7bJPfHlT4FsIwrnF2gPrEvlcHhjsoqLfWSt8sEZjpEx/Pd/IwjnSTG8hr5DUO8/gjKrwIKTd+NAiVu/P8HBC9Z5trhvHBNsjscOF3trX5pIYD/NrAOxqQPswREL2Oj0hfkVGIDeW+ctsN8yO76Gm5qeyyoPyQLl93pBWBfnoHcPxr5KXjTR6XmStkpKW9ApGG0AD3g4JwxyE7HpaWwknnwVDeyp2h8sE2Ozv1AEKXtesFCFCLHnzqpGXuG8FOxynA5T1RVRV6BX0YMPW138yo7mjdoUTJUB83uiN9/BNRSYZNuPVu+myp1bz8RsqLeF/sSU/k8dZkg7Dw43bb2TCaNg8G7FCytpUH9aidJDhf6b+i2Bc7k36Limo5iaa35eULtc9MANi7cx85VLrQjOgrnROKNAljpc6bGhKH8V73pWpZsjOVt9ifVQhd/ABv6/uEHus6a4mhIcIompqBMuUxpZcNbrI4ADHD4XUwVvy0Mqai/U7T8ermMIGYyilXZlTlpCwC7xtDAksivVMUGocACuOVUqcylQKJWnA+7lm4/Ck2ot29hWHMszrR7vi8jhJm3I2XQiuPqwDZSA2JGWpQ6Iqq7o1mwTX15EIdXZs=
- secure: l8cWUA5/SJf9s6v9XJTHsTT1M0jOsd4ThuZMQKIHoVZvLrklF72f5jSpj4+vEvb3rB+qDL0r01D7H4DEUPtAfXJb5WTEMO400DRFdq2nnn/tV5CSSO3m6HsXPnMQJga9VJBiSeVVWVUN8I5qS5m8851Q6GYqMnKsmvlizfK4sCCv0+n8/ESUUgvahFhQ5nQdsUt9nolZyR2q35BLOC1sFGOoRcdJG7TsdvoFWJgPQatz3+o0UhQadP+JXgBPZIH5bjGk7KjnKUalEvsQAxTtoA+o67uCQXDUu8rnpHmw3Rx/U41mwriSjaKQJYrnPGj28YIE4xqdsyDA5rcbu/Hpj3vJXSToTMF5K2KYsDSAfVxhHw+Xoae7958DIOgObAhm2qg1CzUhaF+8DObrT+r525O+6KlHyFQ02kpzo6QWJu4cxe02/s6L3vmtTCaYgdKkQkzYl2MgibPf7wW/5Kg2UrTGagPjPNs7p42MOmQa5xCp3ov7nSdXedMmu7mx+Y37yY0T8DyTdHGjsxOGz3YhkvdbF3iDBRABSHl6l0FNR5ApiGAmH4OZnoNFpCUcZHeIrdbiKL+zgelgNwgqZYlPbNrsaDXx1pa6Vfyg4c2CBIdPZkf1a3tfW0vTvpKjKkVkkNPrgtXEBmWxlaWFCu7Akn8DY5LtndgGemVTGZjZ9SA=
sudo: required
dist: bionic
services: docker
install:
- sudo apt-get update -y && sudo apt-get install -y debootstrap dpkg debian-archive-keyring
- sudo apt install qemu-user-static &&
wget http://security.ubuntu.com/ubuntu/pool/universe/q/qemu/qemu-user-static_3.1+dfsg-2ubuntu3.6_amd64.deb &&
sudo dpkg-deb -x qemu-user-static_3.1+dfsg-2ubuntu3.6_amd64.deb / &&
echo "QEMU updated successfully!"
- if [ "$OS" == "raspbian" ]; then
wget http://archive.raspbian.org/raspbian/pool/main/r/raspbian-archive-keyring/raspbian-archive-keyring_20120528.2_all.deb &&
sudo dpkg -i raspbian-archive-keyring_20120528.2_all.deb &&
export MIRROR=http://archive.raspbian.org/raspbian;
fi
before_script:
- docker --version
- export IMAGE=$OS-$DIST-$ARCH-qemu-minbase
script:
- >
sudo -E /usr/share/docker-ce/contrib/mkimage.sh
-d $PWD
-t $IMAGE
debootstrap
--keyring=/usr/share/keyrings/$OS-archive-keyring.gpg
--arch=$ARCH
--variant=minbase
--include=ascii
$DIST
$MIRROR
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
export VERSION_TAG=$(docker run -i -t $IMAGE cat /etc/debian_version | tr -d '\r\n');
docker tag $IMAGE $NAMESPACE/$IMAGE;
docker tag $IMAGE $NAMESPACE/$IMAGE:$VERSION_TAG;
docker login --username $DOCKER_USER --password $DOCKER_PASSWORD;
docker push $NAMESPACE/$IMAGE;
docker push $NAMESPACE/$IMAGE:$VERSION_TAG;
fi
after_failure:
- cat rootfs/debootstrap/debootstrap.log