-
-
Notifications
You must be signed in to change notification settings - Fork 151
/
.travis.yml
39 lines (38 loc) · 921 Bytes
/
.travis.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
37
38
39
services:
- postgresql
- docker
matrix:
include:
- language: rust
os: linux
cache: cargo
before_install:
- cd atcoder-problems-backend/
before_script:
- psql -c "CREATE USER kenkoooo PASSWORD 'pass';" -U postgres
- psql -c "CREATE DATABASE test OWNER kenkoooo ENCODING utf8;" -U postgres
script:
- cargo clean
- cargo build
- RUST_BACKTRACE=1 cargo test --workspace -- --test-threads=1
- language: node_js
node_js: node
addons:
apt:
packages:
- libgconf-2-4
cache:
npm: true
directories:
- ~/.cache
before_script:
- cd atcoder-problems-frontend/
script:
- npm install yarn -g
- yarn
- yarn build
- yarn test
- yarn lint
- yarn prepare-ci
- yarn start:ci &
- yarn cy:run