diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-02-09 20:00:53 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-02-09 20:00:53 -0800 |
commit | ca078e6bd274e6803d1751695d29119c9a5b6a3e (patch) | |
tree | 03b8bf7e069268025106882109a2703e77c4b5d5 | |
parent | 3745d1a550fa3fe15255e9493035279ad36bd009 (diff) | |
download | fatcat-cli-ca078e6bd274e6803d1751695d29119c9a5b6a3e.tar.gz fatcat-cli-ca078e6bd274e6803d1751695d29119c9a5b6a3e.zip |
minimal .gitlab-ci.yml (instead of complex fatcat one)
-rw-r--r-- | .gitlab-ci.yml | 59 |
1 files changed, 6 insertions, 53 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5aed991..953fb16 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,57 +1,10 @@ -# Rust caching causing bloat and using too much disk space in public gitlab.com -# CI process -#cache: -# key: "${CI_COMMIT_REF_SLUG}" -# paths: -# - python/.venv/ -# - rust/target/ -# - rust/.cargo_cache/ +stages: + - test -variables: - LC_ALL: "C.UTF-8" - LANG: "C.UTF-8" - PIPENV_VENV_IN_PROJECT: "true" - CARGO_HOME: ".cargo_cache" - -image: "bnewbold/fatcat-test-base:latest" - -unified_test: - variables: - POSTGRES_DB: "fatcat_test" - POSTGRES_USER: "fatcat_user" - POSTGRES_PASSWORD: "fatcat_pw" - DATABASE_URL: "postgres://fatcat_user:fatcat_pw@postgres/fatcat_test" - TEST_DATABASE_URL: "postgres://fatcat_user:fatcat_pw@postgres/fatcat_test" - services: - - "postgres:11" - before_script: - - export PATH="$PATH:$CARGO_HOME/bin" - - apt update -qy - - apt install -y python3-dev python3-pip python3-wheel python3-requests python3-six python3-pytest libsnappy-dev libsodium-dev software-properties-common python3.7 python3.7-dev python3.7-venv python3.7-distutils libpq-dev pkg-config python3-pytest git - - diesel --version || cargo install diesel_cli --version 1.3.1 --no-default-features --features postgres +rust-latest: + stage: test + image: rust:latest script: - - rustc --version && cargo --version && diesel --version - - cd rust - - cp example.env .env - - diesel database reset && diesel migration run - - cargo build - - df -h - - df -i - - cargo test -- --test-threads 1 + - make test -rust_build_release: - stage: build - when: manual - before_script: - - export PATH="$PATH:$CARGO_HOME/bin" - - apt update -qy - - apt install -y python3-dev python3-pip python3-wheel python3-requests python3-six python3-pytest libsnappy-dev libsodium-dev - script: - - rustc --version && cargo --version - - cd rust - - ./build_tarball.sh - artifacts: - paths: - - rust/fatcat-rust.tar.gz - expire_in: 1 year |