Skip to content

Commit

Permalink
Make Python3 the default in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed Jul 10, 2019
1 parent 1878dfa commit 81d6646
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 27 deletions.
48 changes: 24 additions & 24 deletions .gitlab-ci.yml
Expand Up @@ -86,7 +86,7 @@ default:
<<: *global_job_definition <<: *global_job_definition
stage: build stage: build
script: script:
- export with_cuda=false myconfig=default with_coverage=true python_version=3 - export with_cuda=false myconfig=default with_coverage=true
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -97,7 +97,7 @@ min_boost:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/ubuntu-python3:min_boost image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/ubuntu-python3:min_boost
script: script:
- export with_cuda=false myconfig=maxset python_version=3 - export with_cuda=false myconfig=maxset
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -107,7 +107,7 @@ maxset:
<<: *global_job_definition <<: *global_job_definition
stage: build stage: build
script: script:
- export myconfig=maxset with_coverage=true python_version=3 - export myconfig=maxset with_coverage=true
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -117,7 +117,7 @@ no_rotation:
<<: *global_job_definition <<: *global_job_definition
stage: build stage: build
script: script:
- export myconfig=no_rotation with_coverage=true python_version=3 - export myconfig=no_rotation with_coverage=true
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -127,7 +127,7 @@ nocheckmaxset:
<<: *global_job_definition <<: *global_job_definition
stage: build stage: build
script: script:
- export with_cuda=false myconfig=nocheck-maxset python_version=3 make_check=false - export with_cuda=false myconfig=nocheck-maxset make_check=false
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -142,7 +142,7 @@ debian:9:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/debian-python3:9 image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/debian-python3:9
script: script:
- export with_cuda=false python_version=3 - export with_cuda=false
- export myconfig=maxset make_check=false - export myconfig=maxset make_check=false
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
Expand All @@ -154,7 +154,7 @@ opensuse:15.1:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/$CI_JOB_NAME image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/$CI_JOB_NAME
script: script:
- export with_cuda=false myconfig=maxset make_check=false python_version=3 - export with_cuda=false myconfig=maxset make_check=false
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -165,7 +165,7 @@ centos:7:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/centos-python3:7 image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/centos-python3:7
script: script:
- export with_cuda=false myconfig=maxset make_check=true python_version=3 - export with_cuda=false myconfig=maxset make_check=true
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -176,7 +176,7 @@ fedora:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/centos-python3:next image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/centos-python3:next
script: script:
- export with_cuda=false myconfig=maxset make_check=false python_version=3 - export with_cuda=false myconfig=maxset make_check=false
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -193,7 +193,7 @@ cuda-maxset:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0 image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0
script: script:
- export myconfig=maxset with_coverage=true python_version=3 test_timeout=900 srcdir=${CI_PROJECT_DIR} - export myconfig=maxset with_coverage=true test_timeout=900 srcdir=${CI_PROJECT_DIR}
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
artifacts: artifacts:
paths: paths:
Expand All @@ -209,7 +209,7 @@ tutorials-samples-maxset:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials
script: script:
- export myconfig=maxset with_coverage=false python_version=3 make_check=false - export myconfig=maxset with_coverage=false make_check=false
- export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200 - export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
Expand All @@ -222,7 +222,7 @@ tutorials-samples-default:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials
script: script:
- export myconfig=default with_coverage=false python_version=3 make_check=false - export myconfig=default with_coverage=false make_check=false
- export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200 - export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
Expand All @@ -237,7 +237,7 @@ tutorials-samples-empty:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials
script: script:
- export myconfig=empty with_coverage=false python_version=3 make_check=false - export myconfig=empty with_coverage=false make_check=false
- export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200 - export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
Expand All @@ -252,7 +252,7 @@ tutorials-samples-no-gpu:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:tutorials
script: script:
- export myconfig=maxset with_coverage=false python_version=3 make_check=false - export myconfig=maxset with_coverage=false make_check=false
- export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200 hide_gpu=true - export make_check_tutorials=true make_check_samples=true make_check_benchmarks=true test_timeout=1200 hide_gpu=true
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
Expand All @@ -269,7 +269,7 @@ cuda-no-gpu:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0 image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0
script: script:
- export myconfig=maxset hide_gpu=true python_version=3 test_timeout=900 - export myconfig=maxset hide_gpu=true test_timeout=900
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -280,7 +280,7 @@ empty:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0 image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0
script: script:
- export myconfig=empty python_version=3 - export myconfig=empty
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -292,7 +292,7 @@ ubuntu:wo-dependencies:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/ubuntu-python3:wo-dependencies image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/ubuntu-python3:wo-dependencies
script: script:
- export myconfig=maxset make_check=false python_version=3 - export myconfig=maxset make_check=false
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -305,7 +305,7 @@ rocm-maxset:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/rocm-python3:latest image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/rocm-python3:latest
script: script:
- export myconfig=maxset python_version=3 - export myconfig=maxset
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- amdgpu - amdgpu
Expand All @@ -319,7 +319,7 @@ rocm-maxset:
script: script:
- export with_cuda=false test_timeout=900 check_skip_long=true - export with_cuda=false test_timeout=900 check_skip_long=true
- export OMPI_MCA_btl_vader_single_copy_mechanism=none - export OMPI_MCA_btl_vader_single_copy_mechanism=none
- export myconfig=maxset python_version=3 - export myconfig=maxset
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand Down Expand Up @@ -352,7 +352,7 @@ osx:
<<: *global_job_definition <<: *global_job_definition
stage: build stage: build
script: script:
- export with_ccache=false myconfig=maxset with_cuda=false python_version=3 - export with_ccache=false myconfig=maxset with_cuda=false
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- mac - mac
Expand All @@ -361,7 +361,7 @@ osx-cuda:
<<: *global_job_definition <<: *global_job_definition
stage: build stage: build
script: script:
- export with_ccache=false myconfig=maxset with_cuda=true python_version=3 make_check=false - export with_ccache=false myconfig=maxset with_cuda=true make_check=false
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- mac - mac
Expand All @@ -373,7 +373,7 @@ clang:6.0:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/clang-python3:6 image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/clang-python3:6
script: script:
- export myconfig=maxset with_coverage=false with_static_analysis=true with_asan=true with_ubsan=true test_timeout=900 python_version=3 - export myconfig=maxset with_coverage=false with_static_analysis=true with_asan=true with_ubsan=true test_timeout=900
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand All @@ -386,7 +386,7 @@ intel:18:
stage: build stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/intel-python3:18 image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/intel-python3:18
script: script:
- export myconfig=maxset with_coverage=false I_MPI_SHM_LMT=shm python_version=3 - export myconfig=maxset with_coverage=false I_MPI_SHM_LMT=shm
- export cxx_flags=-O2 - export cxx_flags=-O2
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
Expand Down Expand Up @@ -441,7 +441,7 @@ check_with_odd_no_of_processors:
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0 image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/cuda:9.0
when: on_success when: on_success
script: script:
- export myconfig=maxset with_coverage=true python_version=3 build_procs=3 check_procs=3 check_odd_only=true - export myconfig=maxset with_coverage=true build_procs=3 check_procs=3 check_odd_only=true
- bash maintainer/CI/build_cmake.sh - bash maintainer/CI/build_cmake.sh
tags: tags:
- docker - docker
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -11,7 +11,7 @@ matrix:
- os: linux - os: linux
sudo: required sudo: required
services: docker services: docker
env: myconfig=maxset image=ubuntu-python3 python_version=3 env: myconfig=maxset image=ubuntu-python3


script: script:
- maintainer/CI/build_docker.sh - maintainer/CI/build_docker.sh
2 changes: 1 addition & 1 deletion maintainer/CI/build_cmake.sh
Expand Up @@ -94,7 +94,7 @@ set_default_value check_skip_long false
set_default_value make_check_tutorials false set_default_value make_check_tutorials false
set_default_value make_check_samples false set_default_value make_check_samples false
set_default_value make_check_benchmarks false set_default_value make_check_benchmarks false
set_default_value python_version 2 set_default_value python_version 3
set_default_value with_cuda true set_default_value with_cuda true
set_default_value build_type "Debug" set_default_value build_type "Debug"
set_default_value with_ccache false set_default_value with_ccache false
Expand Down
1 change: 0 additions & 1 deletion maintainer/CI/build_docker.sh
Expand Up @@ -11,7 +11,6 @@ with_coverage=$with_coverage
myconfig=$myconfig myconfig=$myconfig
check_procs=$check_procs check_procs=$check_procs
make_check=$make_check make_check=$make_check
python_version=$python_version
EOF EOF


if [ -z "$image" ]; then if [ -z "$image" ]; then
Expand Down

0 comments on commit 81d6646

Please sign in to comment.