~sirn/fanboi2

ref: 0e52a2d9448755b13e9989cf85879c52b7bc7b10 fanboi2/.build.yml -rw-r--r-- 1.4 KiB
0e52a2d9Kridsada Thanabulpong [build] fix broken dependencies version lock 1 year, 2 months ago
                                                                                
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
image: freebsd/latest
packages:
  - node8
  - npm-node8
  - postgresql10-client
  - postgresql10-server
  - py36-pip
  - py36-sqlite3
  - py36-virtualenv
  - python3
  - python36
sources:
  - https://git.sr.ht/~sirn/fanboi2
tasks:
  - setup: |
      cd fanboi2/ || exit 1
      export PATH=$HOME/.local/bin:$PATH

      pip install -q --user poetry
      poetry install
      npm install
      npm run gulp
  - test: |
      cd fanboi2/ || exit 1
      export PATH=$HOME/.local/bin:$PATH

      sudo service postgresql oneinitdb
      sudo sysrc postgresql_enable=YES
      sudo sysrc postgresql_flags="-l /var/log/postgresql.log"
      (
        printf "local all all trust\\n"
        printf "host all all 127.0.0.1/32 trust\\n"
        printf "host all all ::1/128 trust\\n"
      ) | sudo tee /var/db/postgres/data10/pg_hba.conf

      sudo touch /var/log/postgresql.log
      sudo chown postgres /var/log/postgresql.log
      sudo service postgresql start
      trap "sudo service postgresql stop" 0 1 2 3 6 14 15
      sudo -u postgres createuser -ds fanboi2
      sudo -u postgres createdb -U fanboi2 fanboi2_test

      export POSTGRESQL_TEST_DATABASE="postgresql://fanboi2:@localhost:5432/fanboi2_test"
      poetry run nose2 --verbose --with-coverage
  - build: |
      cd fanboi2/ || exit 1
      export PATH=$HOME/.local/bin:$PATH

      poetry build --format=sdist
      tar -tvzf dist/fanboi2-*.tar.gz