image: rustlang/rust:nightly

services:
  - postgres:latest

variables:
  GIT_SUBMODULE_STRATEGY: recursive

before_script:
  - echo $HOME
  - ls ~
  - ls $HOME
  - pwd
  - cd .. && git clone https://github.com/ivanceras/bazaar && cd -
  - cd .. && git clone https://github.com/ivanceras/sakila && cd -
  - cd .. && git clone https://github.com/ivanceras/dota-sql && ls && cd -
  - apt update
  - apt install -y postgresql-client
  - cd ../dota-sql/data/ && sh reimport.sh && cd -
  - cd ../bazaar/scripts && sh setup.sh && cd -
  - pwd && ls
  - cp ../sakila/sqlite-sakila-db/sakila.db .

stages:
  - test

test:
  script:
    - cargo test --features "with-postgres with-sqlite"
    - cargo test --features "with-postgres"
    - cargo test --features "with-sqlite"


image: rustlang/rust:nightly

services:
  - postgres:latest

variables:
  GIT_SUBMODULE_STRATEGY: recursive

before_script:
  - echo $HOME
  - ls ~
  - ls $HOME
  - pwd
  - cd .. && git clone https://github.com/ivanceras/bazaar
  - cd -
  - cd .. && git clone https://github.com/ivanceras/sakila
  - cd -
  - cd .. && git clone https://github.com/ivanceras/dota-sql
  - cd -
  - apt update
  - apt install -y postgresql-client
  - cd ../dota-sql/data/ && sh reimport.sh
  - cd -
  - cd ../bazaar/scripts && sh setup.sh
  - cd -
  - cp ../sakila/sqlite-sakila-db/sakila.db .

stages:
  - test

test:
  script:
    - cargo test --features "with-postgres with-sqlite"
    - cargo test --features "with-postgres"
    - cargo test --features "with-sqlite"


Put cd - on the next line
Put cd - on the next line
