-
Notifications
You must be signed in to change notification settings - Fork 2
/
.build.yml
36 lines (36 loc) · 954 Bytes
/
.build.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
30
31
32
33
34
35
36
image: debian/stretch
sources:
- https://git.sr.ht/~caolan/tamawiki
packages:
- chromium
- firefox-esr
- curl
- nodejs
- pkg-config
- libssl-dev
tasks:
- node: |
curl -sL https://deb.nodesource.com/setup_10.x > node-installer.sh
sudo bash node-installer.sh
sudo apt-get install nodejs -y
- rust: |
curl https://sh.rustup.rs -sSf > rust-installer.sh
sh rust-installer.sh -y
- build: |
source $HOME/.cargo/env
cd tamawiki
cargo build --verbose --all
npm install
npm run bundle
- test: |
source $HOME/.cargo/env
cd tamawiki
cargo test --verbose --all
npx karma start --single-run --browsers FirefoxHeadless karma.conf.js
npx karma start --single-run --browsers ChromeHeadless karma.conf.js
- lint: |
source $HOME/.cargo/env
rustup component add rustfmt-preview
cd tamawiki
cargo fmt --all -- --check
npm run lint