-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
66 lines (49 loc) · 1.61 KB
/
.travis.yml
File metadata and controls
66 lines (49 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## Note, "[ci skio]" or "[skip ci]" within a commit message _should_
## cause Travis Continuous Integration to skip the following
## Thanks be to
## https://docs.travis-ci.com/user/languages/rust/
## Clone settings for repository
## 1. Reduce log _fluff_ with `true`
## 2. Clone submodules when cloning this branch with `true`
## 3. Clone the whole Git history with `false`, or set integer limit
git:
quite: false
submodules: false
depth: false
## The dialect that will be spoken
## 1. Really what Jest speaks
## 2. Version(s) of `node_js` to target
language: rust
rust:
- stable
## Operating systems to spin-up
## 1. When `true` some blocks such as `script` terminates at first failure
## 2. List of OS configurations (FrontMater _blocks_) Travis should test with
matrix:
fast_finish: true
include:
## Default 'dist' was 'trusty' as of 2019
- name: 'Linux Xenial'
os: linux
dist: xenial
## Retrict what branches are cloned with Git
## 1. Fetch `only` `main` or _`test-`_ prefixed branches
## 2. Specifically ignore fetching the `gh-pages` branch
branches:
only:
- main
- /^(?i:test)-.*$/
except:
- gh-pages
before_script:
- rustup component add clippy
## Install dependencies and run tests
script:
- cargo clippy
- cargo test --verbose
- cargo run --example rgb-to-hsl -- -r 255 -g 255 -b 255
- cargo run --example hsl-to-rgb -- -h 360 -l 1
- cargo run --example rgb-to-hsv -- -r 255 -g 255 -b 255
- cargo run --example hsv-to-rgb -- -h 360 -v 1
- cargo run --example hsv-to-hsl -- -h 360 -v 1
- cargo run --example hsl-to-hsv -- -h 360 -l 1