-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.build.yml
More file actions
54 lines (46 loc) · 1.01 KB
/
.build.yml
File metadata and controls
54 lines (46 loc) · 1.01 KB
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
image: archlinux
# shell: true
packages:
- python
- npm
sources:
- git@git.sr.ht:~jean-max/WebSwarm
environment:
PIP_PROGRESS_BAR: 'off'
PROJECT: WebSwarm
LC_ALL: C.UTF-8
LANG: C.UTF-8
tasks:
- checkout: |
cd $PROJECT
LAST_COMMIT_HASH=$(git log --remotes | head -n1 | cut -d' ' -f2)
git checkout $LAST_COMMIT_HASH
- venv: |
cd $PROJECT
python3 -m venv .venv
echo . ~/$PROJECT/.venv/bin/activate >> ~/.buildenv
- pip: |
pip install --upgrade pip setuptools
# - secrets: |
# find ~ -name secrets.sh -exec echo . {} \; >> ~/.buildenv
- build: |
cd $PROJECT
make install
make reinstall
make uninstall
make
python -c 'import WebSwarm'
- lint: |
cd $PROJECT
make flake
make lint
make eslint
make todo || true
- test: |
cd $PROJECT
make test
timeout 10 ./runserver.sh || test $? = 124
# TODO: handle SECRET_PASSWORD
# - deploy: |
# cd $PROJECT
# ./deploy.sh