Add S3 env vars in env.py
[functest-xtesting.git] / .travis.yml
1 ---
2 sudo: required
3 services: docker
4 language: generic
5 dist: xenial
6 addons:
7   apt:
8     packages:
9       - libssl1.0.0
10
11 before_script:
12   - sudo apt-get -y install qemu-user-static
13   - sudo add-apt-repository -y ppa:deadsnakes/ppa
14   - sudo apt-get update
15   - sudo apt-get install python3.6 python3.6-dev
16   - sudo pip install tox
17   - sudo -E docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
18   - (cd .. && git clone https://github.com/estesp/manifest-tool)
19   - (cd ../manifest-tool && git checkout v0.9.0)
20   - (cd ../manifest-tool && sudo -E make && sudo -E make install)
21
22 jobs:
23   include:
24     - stage: run unit tests
25       script: >
26         tox -e docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,py36,cover
27     - stage: build xtesting images
28       script: sudo -E bash build.sh
29       env:
30         - REPO="${DOCKER_USERNAME}"
31         - arch="amd64"
32     - script: sudo -E bash build.sh
33       env:
34         - REPO="${DOCKER_USERNAME}"
35         - arch="arm"
36     - script: sudo -E bash build.sh
37       env:
38         - REPO="${DOCKER_USERNAME}"
39         - arch="arm64"
40     - stage: publish xtesting manifests
41       script: >
42         sudo manifest-tool push from-args \
43           --platforms linux/amd64,linux/arm,linux/arm64 \
44           --template ${DOCKER_USERNAME}/xtesting:ARCH-hunter \
45           --target ${DOCKER_USERNAME}/xtesting:hunter