aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-16 18:53:06 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-16 18:53:06 -0700
commitbc345c8c7aeb1dbe045b384c4ee25623ac40095d (patch)
treec645f2ff1eff37d0091fdc404c693b4191079c55
parenta06721491227266e8abc829a754dfed1a84deec7 (diff)
downloadfatcat-bc345c8c7aeb1dbe045b384c4ee25623ac40095d.tar.gz
fatcat-bc345c8c7aeb1dbe045b384c4ee25623ac40095d.zip
update CI script
-rw-r--r--.gitlab-ci.yml26
1 files changed, 19 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 39a0e491..891e8e9f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,12 +1,24 @@
-image: python:3.6-stretch
-before_script:
- - apt update -qy
- - apt install -y python3-dev python3-pip python3-wheel
- - pip3 install pipenv
- - pipenv --version
-unittest_and_lint:
+rust_build:
+ image: "rust:1.26-stretch"
+ services:
+ - "postgres:9.6"
+ before_script:
+ - cargo install diesel_cli
script:
+ - cd rust
+ - rustc --version && cargo --version
+ - cargo build
+
+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