bitque/.builds/client.yml

41 lines
1.0 KiB
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=development
yarn
2020-05-01 23:30:42 +02:00
yarn global add webpack-cli
yarn add webpack-cli
2020-05-01 23:52:27 +02:00
export NODE_ENV=production
2020-05-02 00:12:47 +02:00
yarn webpack-cli -p --config ./webpack.config.js --progress
cp -R ./dev/* ./dist
export TAR_NAME=$(date -u +"%Y%m%d%H%M%s")
tar -czvf ~/${TAR_NAME}.tar.gz ./dist
2020-05-02 13:13:17 +02:00
cp ~/${TAR_NAME}.tar.gz ~/latest.tar.gz
2020-05-02 00:12:47 +02:00
artifacts:
2020-05-02 13:13:17 +02:00
- latest.tar.gz