|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- jobs:
- include:
- - stage: test
- language: python
- name: "Test CLI"
- python:
- - "3.4"
- before_install:
- - cd cli
- install:
- - pip install -r requirements.txt -r test-requirements.txt
- script:
- - export PYTHONPATH='.'
- - python -m unittest discover
-
- - stage: test
- language: python
- name: "Test backend"
- python:
- - "3.4"
- before_install:
- - cd containers/backend
- install:
- - pip install -r requirements.txt
- script:
- - python manage.py test
-
- - stage: test
- language: node_js
- name: "Test JavaScript packages"
- node_js:
- - "lts/*"
- addons:
- chrome: stable
- cache:
- yarn: true
- before_install:
- - curl -o- -L https://yarnpkg.com/install.sh | bash
- - export PATH=$HOME/.yarn/bin:$PATH
- install:
- - yarn install
- script:
- - yarn test
-
- - stage: test
- language: node_js
- name: "Test mobile app"
- node_js:
- - "lts/*"
- cache:
- yarn: true
- before_install:
- - curl -o- -L https://yarnpkg.com/install.sh | bash
- - export PATH=$HOME/.yarn/bin:$PATH
- - cd mobile
- install:
- - yarn install
- script:
- - yarn test
-
- - stage: test
- language: generic
- name: "Test containers"
- services:
- - docker
- before_script:
- - cd containers
- script:
- - ./test.sh
-
- - stage: deploy
- name: "Deploy containers"
- language: generic
- dist: xenial
- sudo: required
- before_script:
- - sudo add-apt-repository -y ppa:projectatomic/ppa
- - sudo apt-get update -y
- - sudo apt-get install -y podman
- - sudo mkdir -p /etc/containers
- - sudo curl https://raw.githubusercontent.com/projectatomic/registries/master/registries.fedora -o /etc/containers/registries.conf
- - cd containers
- script:
- - ./deploy.sh
- on:
- tags: true
- all_branches: true
- condition: "$TRAVIS_TAG =~ ^containers-*$"
|