summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 02f1b78119c4c561a09d4681524d8f9eba987c7b (plain)
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

rust_build:
  image: "rust:1.26-stretch"
  variables:
    DATABASE_URL: "postgres://postgres@localhost/fatcat_test"
  services:
    - "postgres:9.6"
  before_script:
    - cargo install diesel_cli --version 1.2
  script:
    - rustc --version && cargo --version && diesel --version
    - cd rust
    - diesel database reset && diesel migration run
    - cargo build
    - cargo doc
    - cargo test
    - cargo build --release
  artifacts:
    paths:
    - rust/target/release
    - rust/target/doc
    expire_in: 1 month

python_unittest_and_lint:
  image: python:3.6-stretch
  before_script:
    - apt update -qy
    - apt install -y python3-dev python3-pip python3-wheel
    - pip3 install pipenv
    - pipenv --version
  script:
    - cd python
    - pipenv install --dev --deploy
    - pipenv run pytest --cov
    - pipenv run pylint --disable bad-continuation,arguments-differ,unidiomatic-typecheck fatcat