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