-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.cirrus.yml
30 lines (28 loc) · 1.12 KB
/
.cirrus.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
freebsd_instance:
image: freebsd-12-0-release-amd64
task:
install_script:
- pkg update
- pkg install -y python37 py36-psycopg2 py36-ucl rsync git chromium ja-font-ipa libnghttp2
check_script:
- mount
script:
- mkdir -p /pools
- truncate -s 16G "/pools/jaisting-test-`uname -r`.img"
- zpool create -m "/.jaisting-test-`uname -r`" "jaisting-test-`uname -r`" "/pools/jaisting-test-`uname -r`.img"
- zfs set compression=lz4 "jaisting-test-`uname -r`"
- export ZPOOL="jaisting-test-`uname -r`"
- pkg install -y postgresql11-server yarn
- sysrc postgresql_enable=YES
- service postgresql initdb
- service postgresql start
- sudo -u postgres createuser jaisting
- sudo -u postgres psql -c "alter user jaisting with encrypted password 'jaisting'"
- sudo -u postgres psql -c "alter role jaisting with createdb"
- python3.7 -m ensurepip
- python3.7 -m pip install Cython==0.29.5
- python3.7 -m pip install -r requirements.txt
- yarn install
- ./node_modules/.bin/webpack --config webpack.config.js --mode=development
- flake8 ./**/*.py
- python3.7 manage.py test