|  | @@ -1,27 +1,37 @@
 | 
											
												
													
														|  | -image: "rust:latest"
 |  | 
 | 
											
												
													
														|  | 
 |  | +image: "rustlang/rust:nightly"
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +stages:
 | 
											
												
													
														|  | 
 |  | +    - build
 | 
											
												
													
														|  | 
 |  | +    - test
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  before_script:
 |  |  before_script:
 | 
											
												
													
														|  |      - git submodule update --init --recursive
 |  |      - git submodule update --init --recursive
 | 
											
												
													
														|  | -    - rustup toolchain add nightly
 |  | 
 | 
											
												
													
														|  |      - rustup target add x86_64-unknown-redox --toolchain nightly
 |  |      - rustup target add x86_64-unknown-redox --toolchain nightly
 | 
											
												
													
														|  |      - rustup show      # Print version info for debugging
 |  |      - rustup show      # Print version info for debugging
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +cache:
 | 
											
												
													
														|  | 
 |  | +    untracked: true
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  build:linux:
 |  |  build:linux:
 | 
											
												
													
														|  | 
 |  | +    stage: build
 | 
											
												
													
														|  |      script:
 |  |      script:
 | 
											
												
													
														|  |          - make all
 |  |          - make all
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  #build:redox:
 |  |  #build:redox:
 | 
											
												
													
														|  | 
 |  | +#    stage: build
 | 
											
												
													
														|  |  #    script:
 |  |  #    script:
 | 
											
												
													
														|  |  #        - make all
 |  |  #        - make all
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  test:linux:
 |  |  test:linux:
 | 
											
												
													
														|  | 
 |  | +    stage: test
 | 
											
												
													
														|  | 
 |  | +    dependencies:
 | 
											
												
													
														|  | 
 |  | +        - build:linux
 | 
											
												
													
														|  |      script:
 |  |      script:
 | 
											
												
													
														|  |          - make test
 |  |          - make test
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  fmt:
 |  |  fmt:
 | 
											
												
													
														|  | 
 |  | +    stage: test
 | 
											
												
													
														|  |      script:
 |  |      script:
 | 
											
												
													
														|  |          - rustup component add rustfmt-preview
 |  |          - rustup component add rustfmt-preview
 | 
											
												
													
														|  |          - ./fmt.sh -- --check
 |  |          - ./fmt.sh -- --check
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -# TODO: Set up a docker image with a redox vm that would allow to
 |  | 
 | 
											
												
													
														|  | -#   run things like tests under redox
 |  | 
 | 
											
												
													
														|  | 
 |  | +    allow_failure: true
 |