forked from lesspass/lesspass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (83 loc) · 2.06 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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-*$"