Show More
@@ -39,6 +39,35 variables: | |||||
39 | when: on_success |
|
39 | when: on_success | |
40 | needs: [] |
|
40 | needs: [] | |
41 |
|
41 | |||
|
42 | # TODO: we should use an image based on manylinux instead "all-in-one" image | |||
|
43 | # used for all test so far. | |||
|
44 | .build-wheel: &wheel | |||
|
45 | <<: *all | |||
|
46 | stage: build | |||
|
47 | variables: | |||
|
48 | WHEEL_TYPE: "" | |||
|
49 | FLAVOR: "" | |||
|
50 | before_script: | |||
|
51 | - echo "python used, $PYTHON" | |||
|
52 | - $PYTHON --version | |||
|
53 | - echo $WHEEL_TYPE | |||
|
54 | - test -n "$WHEEL_TYPE" | |||
|
55 | - echo $FLAVOR | |||
|
56 | - mkdir -p wheels/$WHEEL_TYPE | |||
|
57 | script: | |||
|
58 | - $PYTHON setup.py bdist_wheel $FLAVOR --dist-dir wheels/$WHEEL_TYPE | |||
|
59 | artifacts: | |||
|
60 | paths: | |||
|
61 | - wheels/$WHEEL_TYPE | |||
|
62 | expire_in: 1 week | |||
|
63 | ||||
|
64 | build-c-wheel: | |||
|
65 | <<: *wheel | |||
|
66 | variables: | |||
|
67 | WHEEL_TYPE: "c" | |||
|
68 | ||||
|
69 | # TODO: We should select the wheel compatible with the python (and plateform) | |||
|
70 | # we use. This is necessary to build multiple wheel. | |||
42 | .runtests_template: &runtests |
|
71 | .runtests_template: &runtests | |
43 | <<: *all |
|
72 | <<: *all | |
44 | stage: tests |
|
73 | stage: tests | |
@@ -54,7 +83,19 variables: | |||||
54 | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt |
|
83 | - ls -1 tests/test-check-*.* > /tmp/check-tests.txt | |
55 | script: |
|
84 | script: | |
56 | - echo "$RUNTEST_ARGS" |
|
85 | - echo "$RUNTEST_ARGS" | |
57 | - HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS |
|
86 | - echo "$WHEEL_TYPE" | |
|
87 | - WHEEL="" | |||
|
88 | - if test -n "$WHEEL_TYPE"; then | |||
|
89 | WHEEL="`ls -1 $CI_PROJECT_DIR/wheels/$WHEEL_TYPE/*.whl`"; | |||
|
90 | test -n "$WHEEL"; | |||
|
91 | fi | |||
|
92 | - if test -n "$WHEEL"; then | |||
|
93 | echo installing from $WHEEL; | |||
|
94 | HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" "$PYTHON" tests/run-tests.py --hg-wheel $WHEEL --color=always $RUNTEST_ARGS; | |||
|
95 | else | |||
|
96 | echo installing from source; | |||
|
97 | HGTESTS_ALLOW_NETIO="$TEST_HGTESTS_ALLOW_NETIO" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS; | |||
|
98 | fi | |||
58 |
|
99 | |||
59 | checks: |
|
100 | checks: | |
60 | <<: *runtests |
|
101 | <<: *runtests | |
@@ -73,12 +114,20 rust-cargo-test: | |||||
73 | variables: |
|
114 | variables: | |
74 | CI_CLEVER_CLOUD_FLAVOR: S |
|
115 | CI_CLEVER_CLOUD_FLAVOR: S | |
75 |
|
116 | |||
76 | test-c: &test_c |
|
117 | .test-c: &test_c | |
77 | <<: *runtests |
|
118 | <<: *runtests | |
78 | variables: |
|
119 | variables: | |
79 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" |
|
120 | RUNTEST_ARGS: " --no-rust --blacklist /tmp/check-tests.txt" | |
80 | TEST_HGTESTS_ALLOW_NETIO: "1" |
|
121 | TEST_HGTESTS_ALLOW_NETIO: "1" | |
81 |
|
122 | |||
|
123 | test-c: | |||
|
124 | <<: *test_c | |||
|
125 | needs: [build-c-wheel] | |||
|
126 | variables: | |||
|
127 | WHEEL_TYPE: "c" | |||
|
128 | RUNTEST_ARGS: "--blacklist /tmp/check-tests.txt" | |||
|
129 | TEST_HGTESTS_ALLOW_NETIO: "1" | |||
|
130 | ||||
82 | test-pure: |
|
131 | test-pure: | |
83 | <<: *runtests |
|
132 | <<: *runtests | |
84 | variables: |
|
133 | variables: |
General Comments 0
You need to be logged in to leave comments.
Login now