1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,44 +0,0 @@ |
1 |
-image: gitlab.kwant-project.org:5005/qt/adaptive:latest |
|
2 |
- |
|
3 |
-stages: |
|
4 |
- - prebuild |
|
5 |
- - test |
|
6 |
- |
|
7 |
-build docker: |
|
8 |
- stage: prebuild |
|
9 |
- image: |
|
10 |
- name: gcr.io/kaniko-project/executor:debug |
|
11 |
- entrypoint: [""] |
|
12 |
- before_script: |
|
13 |
- - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json |
|
14 |
- - export CI_REF=${CI_COMMIT_TAG:-latest} |
|
15 |
- script: |
|
16 |
- - /kaniko/executor |
|
17 |
- --context $CI_PROJECT_DIR |
|
18 |
- --dockerfile $CI_PROJECT_DIR/Dockerfile |
|
19 |
- --destination $CI_REGISTRY_IMAGE:$CI_REF |
|
20 |
- only: |
|
21 |
- changes: |
|
22 |
- - Dockerfile |
|
23 |
- - environment.yml |
|
24 |
- - test-requirements.txt |
|
25 |
- |
|
26 |
-test: |
|
27 |
- stage: test |
|
28 |
- script: |
|
29 |
- - py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive |
|
30 |
- artifacts: |
|
31 |
- paths: |
|
32 |
- - htmlcov |
|
33 |
- |
|
34 |
-authors check: |
|
35 |
- stage: test |
|
36 |
- script: |
|
37 |
- - MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"') |
|
38 |
- - if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi |
|
39 |
- allow_failure: true |
|
40 |
- |
|
41 |
-check whitespace style: |
|
42 |
- stage: test |
|
43 |
- script: ./check_whitespace |
|
44 |
- allow_failure: true |
... | ... |
@@ -1,20 +1,44 @@ |
1 |
-image: quantumtinkerer/research |
|
1 |
+image: gitlab.kwant-project.org:5005/qt/adaptive:latest |
|
2 |
+ |
|
3 |
+stages: |
|
4 |
+ - prebuild |
|
5 |
+ - test |
|
6 |
+ |
|
7 |
+build docker: |
|
8 |
+ stage: prebuild |
|
9 |
+ image: |
|
10 |
+ name: gcr.io/kaniko-project/executor:debug |
|
11 |
+ entrypoint: [""] |
|
12 |
+ before_script: |
|
13 |
+ - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json |
|
14 |
+ - export CI_REF=${CI_COMMIT_TAG:-latest} |
|
15 |
+ script: |
|
16 |
+ - /kaniko/executor |
|
17 |
+ --context $CI_PROJECT_DIR |
|
18 |
+ --dockerfile $CI_PROJECT_DIR/Dockerfile |
|
19 |
+ --destination $CI_REGISTRY_IMAGE:$CI_REF |
|
20 |
+ only: |
|
21 |
+ changes: |
|
22 |
+ - Dockerfile |
|
23 |
+ - environment.yml |
|
24 |
+ - test-requirements.txt |
|
2 | 25 |
|
3 | 26 |
test: |
27 |
+ stage: test |
|
4 | 28 |
script: |
5 |
- - pip install -r test-requirements.txt |
|
6 |
- - conda install -y -q scikit-optimize |
|
7 | 29 |
- py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive |
8 | 30 |
artifacts: |
9 | 31 |
paths: |
10 | 32 |
- htmlcov |
11 | 33 |
|
12 | 34 |
authors check: |
35 |
+ stage: test |
|
13 | 36 |
script: |
14 | 37 |
- MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"') |
15 | 38 |
- if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi |
16 | 39 |
allow_failure: true |
17 | 40 |
|
18 | 41 |
check whitespace style: |
42 |
+ stage: test |
|
19 | 43 |
script: ./check_whitespace |
20 | 44 |
allow_failure: true |
... | ... |
@@ -14,3 +14,7 @@ authors check: |
14 | 14 |
- MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"') |
15 | 15 |
- if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi |
16 | 16 |
allow_failure: true |
17 |
+ |
|
18 |
+check whitespace style: |
|
19 |
+ script: ./check_whitespace |
|
20 |
+ allow_failure: true |
... | ... |
@@ -1,4 +1,5 @@ |
1 | 1 |
image: quantumtinkerer/research |
2 |
+ |
|
2 | 3 |
test: |
3 | 4 |
script: |
4 | 5 |
- pip install -r test-requirements.txt |
... | ... |
@@ -7,3 +8,9 @@ test: |
7 | 8 |
artifacts: |
8 | 9 |
paths: |
9 | 10 |
- htmlcov |
11 |
+ |
|
12 |
+authors check: |
|
13 |
+ script: |
|
14 |
+ - MISSING_AUTHORS=$(git shortlog -s HEAD | sed -e "s/^[0-9\t ]*//"| xargs -i sh -c 'grep -q "{}" AUTHORS.md || echo "{} missing from authors"') |
|
15 |
+ - if [ ! -z "$MISSING_AUTHORS" ]; then { echo $MISSING_AUTHORS; exit 1; }; fi |
|
16 |
+ allow_failure: true |
It's now done by Gitlab itself using kwant-bot's account on
Github.
... | ... |
@@ -7,18 +7,3 @@ test: |
7 | 7 |
artifacts: |
8 | 8 |
paths: |
9 | 9 |
- htmlcov |
10 |
- |
|
11 |
-mirror repository: |
|
12 |
- allow_failure: true |
|
13 |
- variables: |
|
14 |
- REPO: "git@github.com:python-adaptive/adaptive.git" |
|
15 |
- before_script: |
|
16 |
- - mkdir ~/.ssh && chmod 700 ~/.ssh |
|
17 |
- - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts |
|
18 |
- - echo "$DEPLOY_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa |
|
19 |
- after_script: |
|
20 |
- - rm -rf ~/.ssh |
|
21 |
- script: |
|
22 |
- - ORIGIN_URL=$(git config --get remote.origin.url) |
|
23 |
- - cd $(mktemp -d); git clone --bare $ORIGIN_URL . |
|
24 |
- - git push --mirror $REPO |
... | ... |
@@ -2,7 +2,7 @@ image: quantumtinkerer/research |
2 | 2 |
test: |
3 | 3 |
script: |
4 | 4 |
- pip install -r test-requirements.txt |
5 |
- - conda install -y -q sckit-optimize |
|
5 |
+ - conda install -y -q scikit-optimize |
|
6 | 6 |
- py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive |
7 | 7 |
artifacts: |
8 | 8 |
paths: |
... | ... |
@@ -1,7 +1,8 @@ |
1 | 1 |
image: quantumtinkerer/research |
2 | 2 |
test: |
3 | 3 |
script: |
4 |
- - conda install -y -q pytest-cov scikit-optimize |
|
4 |
+ - pip install -r test-requirements.txt |
|
5 |
+ - conda install -y -q sckit-optimize |
|
5 | 6 |
- py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive |
6 | 7 |
artifacts: |
7 | 8 |
paths: |
... | ... |
@@ -12,11 +12,11 @@ mirror repository: |
12 | 12 |
variables: |
13 | 13 |
REPO: "git@github.com:python-adaptive/adaptive.git" |
14 | 14 |
before_script: |
15 |
- - mkdir /root/.ssh && chmod 700 /root/.ssh |
|
16 |
- - ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts |
|
17 |
- - echo "$DEPLOY_KEY" > /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa |
|
15 |
+ - mkdir ~/.ssh && chmod 700 ~/.ssh |
|
16 |
+ - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts |
|
17 |
+ - echo "$DEPLOY_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa |
|
18 | 18 |
after_script: |
19 |
- - rm -rf /root/.ssh |
|
19 |
+ - rm -rf ~/.ssh |
|
20 | 20 |
script: |
21 | 21 |
- ORIGIN_URL=$(git config --get remote.origin.url) |
22 | 22 |
- cd $(mktemp -d); git clone --bare $ORIGIN_URL . |
... | ... |
@@ -6,3 +6,18 @@ test: |
6 | 6 |
artifacts: |
7 | 7 |
paths: |
8 | 8 |
- htmlcov |
9 |
+ |
|
10 |
+mirror repository: |
|
11 |
+ allow_failure: true |
|
12 |
+ variables: |
|
13 |
+ REPO: "git@github.com:python-adaptive/adaptive.git" |
|
14 |
+ before_script: |
|
15 |
+ - mkdir /root/.ssh && chmod 700 /root/.ssh |
|
16 |
+ - ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts |
|
17 |
+ - echo "$DEPLOY_KEY" > /root/.ssh/id_rsa && chmod 600 /root/.ssh/id_rsa |
|
18 |
+ after_script: |
|
19 |
+ - rm -rf /root/.ssh |
|
20 |
+ script: |
|
21 |
+ - ORIGIN_URL=$(git config --get remote.origin.url) |
|
22 |
+ - cd $(mktemp -d); git clone --bare $ORIGIN_URL . |
|
23 |
+ - git push --mirror $REPO |