Browse code

removes the GitLab CI file and the Dockerimage that was used there

Bas Nijholt authored on 21/01/2019 15:49:28
Showing 1 changed files
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
Browse code

build the Dockerimage used in CI

Bas Nijholt authored on 23/11/2018 14:04:19
Showing 1 changed files
... ...
@@ -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
Browse code

add check_whitespace

Bas Nijholt authored on 15/10/2018 17:15:40
Showing 1 changed files
... ...
@@ -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
Browse code

add authors check in CI

Bas Nijholt authored on 11/09/2018 11:47:06
Showing 1 changed files
... ...
@@ -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
Browse code

ci: remove repository mirroring

It's now done by Gitlab itself using kwant-bot's account on
Github.

Joseph Weston authored on 20/08/2018 16:45:18
Showing 1 changed files
... ...
@@ -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
Browse code

skip the scikit-optimize tests if it's not installed

Joseph Weston authored on 18/07/2018 19:51:09
Showing 1 changed files
... ...
@@ -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:
Browse code

add pytest-randomly to CI config and put test requirements in a file

Joseph Weston authored on 18/07/2018 19:50:27
Showing 1 changed files
... ...
@@ -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:
Browse code

add scikit-optimize to the test environment

Joseph Weston authored on 10/07/2018 12:37:09
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 image: quantumtinkerer/research
2 2
 test:
3 3
   script:
4
-    - conda install -y -q pytest-cov
4
+    - conda install -y -q pytest-cov scikit-optimize
5 5
     - py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive
6 6
   artifacts:
7 7
     paths:
Browse code

change /root/ to ~/ in the CI config

Bas Nijholt authored on 12/04/2018 14:30:21
Showing 1 changed files
... ...
@@ -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 .
Browse code

mirror repo to GitHub

Bas Nijholt authored on 09/12/2017 01:34:45
Showing 1 changed files
... ...
@@ -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
Browse code

run py.test with verbose and test coverage

Bas Nijholt authored on 08/01/2018 17:39:38
Showing 1 changed files
... ...
@@ -1,4 +1,8 @@
1 1
 image: quantumtinkerer/research
2 2
 test:
3 3
   script:
4
-     - py.test adaptive
4
+    - conda install -y -q pytest-cov
5
+    - py.test --verbose --cov=adaptive --cov-report term --cov-report html adaptive
6
+  artifacts:
7
+    paths:
8
+      - htmlcov
Browse code

use quantumtinkerer/research for testing

Bas Nijholt authored on 14/11/2017 15:42:39
Showing 1 changed files
... ...
@@ -1,4 +1,4 @@
1
-image: adaptive-testing
1
+image: quantumtinkerer/research
2 2
 test:
3 3
   script:
4 4
      - py.test adaptive
Browse code

setup CI and implement first test

Bas Nijholt authored on 30/08/2017 12:14:09
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,4 @@
1
+image: adaptive-testing
2
+test:
3
+  script:
4
+     - py.test adaptive