machine:
  pre:
    - curl -sS https://static.rust-lang.org/rustup.sh > rustup.sh
    - chmod +x ./rustup.sh
    - ./rustup.sh --yes
    - sudo apt-get install libXxf86vm-dev libosmesa6-dev
  environment:
    GLIUM_HEADLESS_TESTS: 1

test:
  override:
    - cargo build --verbose -j 2
    - cargo test --features "glutin" --verbose -j 2
    - cargo test --no-default-features --features "glutin" --verbose -j 2
    - cargo build --features "glutin" --verbose -j 2
    #- cargo test --manifest-path macros/Cargo.toml -j 2

general:
  branches:
    ignore:
      - gh-pages

machine:
  pre:
    - curl -sS https://static.rust-lang.org/rustup.sh > rustup.sh
    - chmod +x ./rustup.sh
    - ./rustup.sh --yes
    - sudo apt-get install libXxf86vm-dev libosmesa6-dev
  environment:
    GLIUM_HEADLESS_TESTS: 1

test:
  override:
    # temporary workaround until cargo#2078 is ready
    - eval `ssh-agent` && ssh-add /home/ubuntu/.ssh/id_circleci_github && cargo build --verbose -j 2
    - cargo test --features "glutin" --verbose -j 2
    - cargo test --no-default-features --features "glutin" --verbose -j 2
    - cargo build --features "glutin" --verbose -j 2
    #- cargo test --manifest-path macros/Cargo.toml -j 2

general:
  branches:
    ignore:
      - gh-pages

Add temporary workaround for CircleCI problem
Add temporary workaround for CircleCI problem
