aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-20 16:14:57 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-20 16:14:57 -0700
commitf7de7e30399409c03ba820c9c7a33c95c38e3efa (patch)
tree16658d239ee8f80c65c6f1be9bf641f62af85c2c /.gitlab-ci.yml
parented498a60fec55f1a2f5d10907b47971696224ec1 (diff)
downloadfatcat-f7de7e30399409c03ba820c9c7a33c95c38e3efa.tar.gz
fatcat-f7de7e30399409c03ba820c9c7a33c95c38e3efa.zip
build deployable artifacts
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml36
1 files changed, 26 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4dc25d1a..d8724581 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,7 @@ unified_test:
variables:
LC_ALL: "C.UTF-8"
LANG: "C.UTF-8"
+ PIPENV_VENV_IN_PROJECT: "true"
POSTGRES_DB: "fatcat_test"
POSTGRES_USER: "fatcat_user"
POSTGRES_PASSWORD: "fatcat_pw"
@@ -36,8 +37,8 @@ unified_test:
- pipenv run pylint -E fatcat*.py fatcat_tools fatcat_web tests/*.py
rust_build_release:
- only:
- - tags # doesn't build for most commits; only tagged
+ stage: build
+ when: manual
image: "rust:1.32-stretch"
variables:
LC_ALL: "C.UTF-8"
@@ -48,15 +49,30 @@ rust_build_release:
script:
- rustc --version && cargo --version
- cd rust
- - cargo build --release
- - cargo doc
+ - ./build_tarball.sh
artifacts:
paths:
- - rust/target/release/fatcat*
- - rust/target/doc/fatcat*
- - rust/target/doc/*.css
- - rust/target/doc/*.js
- - rust/target/doc/*.woff
- - rust/target/doc/*.svg
+ - rust/fatcat-rust.tar.gz
expire_in: 1 year
+python_build_release:
+ stage: build
+ when: manual
+ image: "rust:1.32-stretch"
+ variables:
+ LC_ALL: "C.UTF-8"
+ LANG: "C.UTF-8"
+ PIPENV_VENV_IN_PROJECT: "true"
+ before_script:
+ - apt update -qy
+ - apt install -y python3-dev python3-pip python3-wheel python3-requests python3-six python3-pytest libsnappy-dev libsodium-dev
+ - pip3 install pipenv
+ script:
+ - python3 --version
+ - pipenv --version
+ - cd python
+ - ./build_tarball.sh
+ artifacts:
+ paths:
+ - python/fatcat-python.tar.gz
+ expire_in: 1 year