-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (41 loc) · 1.02 KB
/
.travis.yml
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
language: rust
dist: bionic
sudo: required
rust:
- stable
before_install:
- sudo apt-get update
- ci/network.sh prep
- ci/connman.sh prep
- ci/connman.sh build
- ci/wpa_supplicant.sh prep
- ci/wpa_supplicant.sh build
- ci/hostapd.sh prep
- ci/hostapd.sh build
before_script:
- ci/wpa_supplicant.sh run
- ci/connman.sh run
- ci/hostapd.sh run
- sleep 5
- sudo connmanctl scan wifi
- sleep 5
- sudo connmanctl services
script:
- cargo test
- cargo build --example wifi_scan_list
- cargo build --features=introspection --example wifi_introspect
- cargo build --example wifi_connect
- sudo target/debug/examples/wifi_introspect
- sudo target/debug/examples/wifi_scan_list
- sudo mkdir -p /usr/local/var/lib/connman
- sudo target/debug/examples/wifi_connect -p mypassword myssid
- sleep 5
- sudo connmanctl services
- sudo target/debug/examples/wifi_connect --disconnect myssid
- sudo connmanctl services
cache:
cargo: true
directories:
- connman
- hostap
- supplicant