containers:

  build:
    setup:
    - !Ubuntu trusty
    - !Install [make, gcc, libc6-dev]
    - !TarInstall
      url: http://static.rust-lang.org/dist/rust-1.0.0-alpha.2-x86_64-unknown-linux-gnu.tar.gz
      # We install rustc and cargo, but skip rust-docs
      script: ./install.sh --prefix=/usr --components=rustc,cargo
    volumes:
      /tmp: !Tmpfs { size: 100Mi }

commands:

  make: !Command
    container: build
    run: [make]

  test: !Command
    container: build
    run: make test

  example-greeting: !Command
    description: Build and run "greeting" example
    container: build
    accepts-arguments: true
    run: |
      make greeting
      ./greeting "$@"

  example-structure: !Command
    description: Build and run "structure" example
    container: build
    accepts-arguments: true
    run: |
      make structure
      ./structure "$@"



containers:

  build:
    setup:
    - !Ubuntu trusty
    - !Install [make, gcc, libc6-dev, ca-certificates]
    - !TarInstall
      url: http://static.rust-lang.org/dist/rust-1.0.0-alpha.2-x86_64-unknown-linux-gnu.tar.gz
      # We install rustc and cargo, but skip rust-docs
      script: ./install.sh --prefix=/usr --components=rustc,cargo
    volumes:
      /tmp: !Tmpfs { size: 100Mi }

commands:

  make: !Command
    container: build
    run: [make]

  test: !Command
    container: build
    run: make test

  example-greeting: !Command
    description: Build and run "greeting" example
    container: build
    accepts-arguments: true
    run: |
      make greeting
      ./greeting "$@"

  example-structure: !Command
    description: Build and run "structure" example
    container: build
    accepts-arguments: true
    run: |
      make structure
      ./structure "$@"



Add ca-certificates needed for cargo
Add ca-certificates needed for cargo
