@@ -3,48 +3,51 @@ dist: xenial
3
3
language : python
4
4
python :
5
5
- " 3.6"
6
- cache :
7
- pip : true
8
6
9
7
services :
10
8
- redis-server
11
9
12
- env :
13
- # LIB_CHECK_CP_FILE is for circuitpython_libraries.py output
14
- # LIB_CHECK_ARD_FILE is for arduino_libraries.py output
15
- # LIB_DL_STATS_FILE is for future Bundle and PyPi download stats script
16
- - |
17
- LIB_CHECK_CP_FILE='bin/adabot/circuitpython_library_report_'`date +%Y%m%d`'.txt' \
18
- LIB_CHECK_ARD_FILE='bin/adabot/arduino_library_report_'`date +%Y%m%d`'.txt' \
19
- LIB_DL_STATS_FILE='bin/adabot/library_download_stats_'`date +%Y%m%d`'.txt' \
20
-
21
- addons :
22
- artifacts :
23
- paths :
24
- - $(ls bin/adabot/* | tr "\n" ":")
25
- target_paths : /adabot
26
- debug : true
27
-
28
- script :
29
- # A folder for Adabot files
30
- - mkdir -p bin/adabot
31
-
32
- # Run the Bundle update script
33
- - echo "Updating CircuitPython Library Bundles..." && echo -en 'travis_fold:start:update\\r'
34
- - python -m adabot.circuitpython_bundle
35
- - echo -en 'travis_fold:end:update\\r'
36
-
37
- # Run the circuitpython_libraries.py report; output a file with results for AWS
38
- - echo "Running CircuitPython library checks..." && echo -en 'travis_fold:start:lib_check\\r'
39
- - python -m adabot.circuitpython_libraries -o $LIB_CHECK_CP_FILE
40
- - echo -en 'travis_fold:end:lib_check\\r'
41
-
42
- # Run the circuitpython_library_download_stats.py; output a file with results for AWS
43
- - echo "Getting CircuitPython Library Download Stats..." && echo -en 'travis_fold:start:stats\\r'
44
- - python -m adabot.circuitpython_library_download_stats -o $LIB_DL_STATS_FILE
45
- - echo -en 'travis_fold:end:stats\\r'
46
-
47
- # Run the arduino_libraries.py report; output a file with results for AWS
48
- - echo "Running Arduino library checks..." && echo -en 'travis_fold:start:ard_lib_check\\r'
49
- - python -m adabot.arduino_libraries -o $LIB_CHECK_ARD_FILE
50
- - echo -en 'travis_fold:end:ard_lib_check\\r'
10
+ jobs :
11
+ include :
12
+ - python : " 3.6"
13
+ name : " Update Bundle"
14
+ script :
15
+ - echo "Updating CircuitPython Library Bundles..."
16
+ - python -m adabot.circuitpython_bundle
17
+
18
+ - python : " 3.6"
19
+ name : " Run Reports"
20
+
21
+ addons :
22
+ artifacts :
23
+ paths :
24
+ - $(ls bin/adabot/* | tr "\n" ":")
25
+ target_paths : /adabot
26
+ debug : true
27
+
28
+ env :
29
+ # LIB_CHECK_CP_FILE is for circuitpython_libraries.py output
30
+ # LIB_CHECK_ARD_FILE is for arduino_libraries.py output
31
+ # LIB_DL_STATS_FILE is for future Bundle and PyPi download stats script
32
+ - LIB_CHECK_CP_FILE='bin/adabot/circuitpython_library_report_'`date +%Y%m%d`'.txt'
33
+ - LIB_CHECK_ARD_FILE='bin/adabot/arduino_library_report_'`date +%Y%m%d`'.txt'
34
+ - LIB_DL_STATS_FILE='bin/adabot/library_download_stats_'`date +%Y%m%d`'.txt'
35
+
36
+ script :
37
+ # A folder for Adabot files
38
+ - mkdir -p bin/adabot
39
+
40
+ # Run the circuitpython_libraries.py report; output a file with results for AWS
41
+ - echo "Running CircuitPython library checks..." && echo 'travis_fold:start:lib_check'
42
+ - python -u -m adabot.circuitpython_libraries -o $LIB_CHECK_CP_FILE
43
+ - echo 'travis_fold:end:lib_check'
44
+
45
+ # Run the circuitpython_library_download_stats.py; output a file with results for AWS
46
+ - echo "Getting CircuitPython Library Download Stats..." && echo 'travis_fold:start:stats'
47
+ - python -u -m adabot.circuitpython_library_download_stats -o $LIB_DL_STATS_FILE
48
+ - echo 'travis_fold:end:stats'
49
+
50
+ # Run the arduino_libraries.py report; output a file with results for AWS
51
+ - echo "Running Arduino library checks..." && echo 'travis_fold:start:ard_lib_check'
52
+ - python -u -m adabot.arduino_libraries -o $LIB_CHECK_ARD_FILE
53
+ - echo 'travis_fold:end:ard_lib_check'
0 commit comments