Updated from global requirements
[functest-xtesting.git] / .travis.yml
1 sudo: required
2 language: bash
3 services: docker
4 language: generic
5
6 before_script:
7   - sudo apt-get -y install qemu-user-static
8   - sudo -E docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
9   - (cd .. && git clone https://github.com/estesp/manifest-tool)
10   - (cd ../manifest-tool && sudo -E make && sudo -E make install)
11
12 jobs:
13   include:
14     - stage: build xtesting images
15       script: sudo -E bash build.sh
16       env:
17         - REPO="${DOCKER_USERNAME}"
18         - arch="amd64"
19     - script: sudo -E bash build.sh
20       env:
21         - REPO="${DOCKER_USERNAME}"
22         - arch="arm64"
23     - stage: publish xtesting manifests
24       script: >
25         sudo manifest-tool push from-args \
26           --platforms linux/amd64,linux/arm64 \
27           --template ${DOCKER_USERNAME}/xtesting:ARCH-latest \
28           --target ${DOCKER_USERNAME}/xtesting:latest