-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (58 loc) · 2.26 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
dist: xenial
group: edge
stages:
- name: Tests
# - name: Deployment
# if: branch = master AND type = push AND fork = false
# env:
# global:
# secure: l/cuUR2zD9Qvv725R8DziM4RgdrYI97Xr080GK/Wg/ceIqBzdyS/hTBkv5fnQ4R9Z8RkMViKJ+aPqaTqMeSuUZw7sBrVdcAlm6Tj7Vcbb5G7gWWMUfYpb6SX5xxEyaokAtee+D84DYc6ofPIRTyjywNKZDED1us9O4yS0bK4tahbjLIHikZ9Pl9LHZO41Ty+eCOYAq/vsOA2cntk+pey5oaZ614ty1sZUjEuSyhDg9AzrXPzulURrrdh0ahebhDcvUwpP+4OLiRDPUgXZZNemUoghgPb9zQJR8qzOJUbWTh7KnOg3WAIKQMgrIAtycMvpZsDbHwnLlcheKYQ798zNEU8zl2UwhADb8Q6vU9SUSuHlPCnfo3csB+/Tb+4t5LVV10h/nm70yoPCF4qSatyRzO0hufTUIJLQBelLX903/UvD+cjo+QT58oQiSbdALeFfq5FGDglIwGfhoGU6cQi65vhmBAtvyqLoqr8CX/mB8T90P+AkUmXi/qRHmjh9Kat6YUX4rf4XZLKL9ksmi9VfVltCJfH7AgIbpGPyVh1FW7eOolrpjeXVJ03OYGTad6aApMJk2uhrxY1Yc50JyEA4Y/uYoql1nh8s/5p2AAJWWeGNbqpWoo8B9NbRqwWvDJobUjjv0cvxOmI1XNNGxKpAhSRJz/1MuIpJJarnHfE4cg=
jobs:
include:
- stage: Tests
name: React Tests
language: node_js # js testing
node_js:
- '12.16.1'
cache: yarn
before_install: # using yarn to install dependencies
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.22.0
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- yarn install --frozen-lockfile
scripts: # scripts for testing and building
- yarn test
- yarn build
- stage: Tests
name: Django Tests
language: python # for django test travis automatially creates a virtualenv, no need to specify it
python:
- 3.8
before_install:
- pip install pipenv # using poetry to manage dependencies
install:
- pipenv install
scripts:
- python manage.py check --deploy
- python manage.py test
- stage: Tests
name: Pre-commit tests
language: python # pre-commit
python:
- 3.8
install:
- pip install pre-commit
script:
- pre-commit run --all-files
# - stage: Deployment
# name: Full Project Deployment
# language: python
# python: '3.8'
# cache: pip
# before_install:
# - echo $encrypt_key | gpg --passphrase-fd 0 dsc_tiet.gpg
# - chmod 400 ./dsc_tiet
# install:
# - pip install ansible
# script:
# - ansible-playbook playbooks/deploy.yml