forked from tboox/tbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
80 lines (76 loc) · 2.75 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
sudo: required
language: C
os:
- linux
- osx
install:
- git clone --branch=dev https://github.com/waruqi/xmake.git waruqi/xmake
- cd ./waruqi/xmake
- sudo ./install
- cd -
script:
- xmake
- xmake p
- xmake f -m debug
- xmake -r
- xmake c
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
xmake m package -p iphoneos;
xmake m package -p iphoneos -f "-m debug";
xmake f -m profile;
xmake -r;
xmake f -m coverage;
xmake -r;
echo "testing stream ..";
xmake r demo stream http://tboox.net /tmp/a > ./error.txt;
xmake r demo stream_async_stream http://www.tboox.org /tmp/a > ./error.txt;
echo "testing regex ..";
xmake r demo regex > ./error.txt;
echo "testing network ..";
xmake r demo network_url > ./error.txt;
xmake r demo network_cookies > ./error.txt;
echo "testing libm ..";
xmake r demo libm_float > ./error.txt;
xmake r demo libm_double > ./error.txt;
echo "testing math ..";
xmake r demo math_fixed > ./error.txt;
echo "testing libc ..";
xmake r demo libc_time > ./error.txt;
xmake r demo libc_wchar > ./error.txt;
xmake r demo libc_stdlib > ./error.txt;
xmake r demo libc_string > ./error.txt;
echo "testing algorithm ..";
xmake r demo algorithm_find > ./error.txt;
xmake r demo algorithm_sort > ./error.txt;
echo "testing container ..";
xmake r demo container_list > ./error.txt;
xmake r demo container_heap > ./error.txt;
xmake r demo container_queue > ./error.txt;
xmake r demo container_vector > ./error.txt;
xmake r demo container_hash_map > ./error.txt;
echo "testing object ..";
xmake r demo object_dump ./res/object.xml > ./error.txt;
xmake r demo object_dump ./res/object.bin > ./error.txt;
xmake r demo object_dump ./res/object.json > ./error.txt;
xmake r demo object_dump ./res/object.bplist > ./error.txt;
xmake r demo object_dump ./res/object.xplist > ./error.txt;
echo "testing database ..";
xmake r demo database_sql /tmp/sqlite3.db > ./error.txt;
echo "testing utils ..";
xmake r demo utils_dump /tmp/sqlite3.db > ./error.txt;
xmake r demo utils_crc hello > ./error.txt;
xmake r demo utils_md5 hello > ./error.txt;
xmake r demo utils_sha hello > ./error.txt;
xmake r demo utils_bits > ./error.txt;
echo "testing platform ..";
xmake r demo platform_ifaddrs > ./error.txt;
xmake r demo platform_hostname > ./error.txt;
xmake r demo platform_backtrace > ./error.txt;
xmake r demo platform_thread_pool > ./error.txt;
fi
after_success:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
bash <(curl -s https://codecov.io/bash);
fi
after_failure:
- cat ./error.txt