bitque/.builds/client.yml

36 lines
887 B
YAML
Raw Normal View History

2020-05-01 21:40:32 +02:00
image: archlinux
packages:
- nodejs
- rustup
2020-05-01 22:21:28 +02:00
- yarn
2020-05-01 21:40:32 +02:00
sources:
- https://git.sr.ht/~tsumanu/jirs
environment:
deploy: adrian.wozniak@ita-prog.pl
2020-05-01 22:21:28 +02:00
DEBUG: false
JIRS_CLIENT_PORT: 80
JIRS_CLIENT_BIND: jirs.ita-prog.pl
JIRS_SERVER_PORT: 80
JIRS_SERVER_BIND: jirs.ita-prog.pl
2020-05-01 23:52:27 +02:00
CI: true
2020-05-01 21:40:32 +02:00
secrets:
- 7ebab768-e5e4-4c9d-ba57-ec41a72c5665
tasks:
- setup: |
2020-05-01 22:34:09 +02:00
rustup toolchain install nightly
rustup default nightly
2020-05-01 22:21:28 +02:00
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sudo sh
2020-05-01 21:40:32 +02:00
- test: |
2020-05-01 22:21:28 +02:00
cd ~/jirs/jirs-client
2020-05-01 23:52:27 +02:00
export NODE_ENV=development
2020-05-01 21:40:32 +02:00
wasm-pack test --node
- build: |
2020-05-01 22:21:28 +02:00
cd ~/jirs/jirs-client
2020-05-01 23:52:27 +02:00
export NODE_ENV=production
2020-05-19 20:54:46 +02:00
./scripts/prod.sh
2020-05-02 00:12:47 +02:00
export TAR_NAME=$(date -u +"%Y%m%d%H%M%s")
2020-08-17 23:18:51 +02:00
tar -cJvf ~/${TAR_NAME}.tar.xz ./build
cp ~/${TAR_NAME}.tar.xz ~/latest.tar.xz
2020-05-02 00:12:47 +02:00
artifacts:
2020-05-02 13:13:17 +02:00
- latest.tar.gz