Skip to content
Snippets Groups Projects
Commit 428d2168 authored by Mael Madon's avatar Mael Madon
Browse files

Merge branch 'master' of gitlab.irit.fr:sepia/scheduling/user-oriented/batsim_schedulers

parents 96dc1a17 92448eee
Branches
Tags
No related merge requests found
......@@ -14,23 +14,23 @@ build_and_test:
stage: big_stage
script:
# Build batsched
- nix-shell --pure ./release.nix -A batsched --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
- nix-build ./release.nix -A batsched && cp -rL result ./batsched
# # Test against pinned batsim
# - nix-shell --pure ./release.nix -A integration_tests --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
# - nix-build ./release.nix -A integration_tests && cp -rL result ./integration_tests
- nix-shell --pure ./default.nix -A batsched --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
- nix-build ./default.nix -A batsched && cp -rL result ./batsched
# Test against pinned batsim
- nix-shell --pure ./default.nix -A integration_tests --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
- nix-build ./default.nix -A integration_tests && cp -rL result ./integration_tests
# # Test against up-to-date batsim
# - nix-shell --pure ./release.nix -A integration_tests_batlatest --command ${CI_PROJECT_DIR}/ci/list-store-paths-for-cachix.bash | cachix push batsim
# - nix-build ./release.nix -A integration_tests_batlatest && rm result
# # Fail job if tests failed
# - if [[ "$(cat ./integration_tests/pytest_returncode)" -ne 0 ]] ; then echo "pytest returned non-zero (against pinned batsim), aborting" ; exit 1 ; fi
# - if [[ "$(cat ./integration_tests_batlatest/pytest_returncode)" -ne 0 ]] ; then echo "pytest returned non-zero (against latest batsim), aborting" ; exit 1 ; fi
- if [[ "$(cat ./integration_tests/pytest_returncode)" -ne 0 ]] ; then echo "pytest returned non-zero (against pinned batsim), aborting" ; exit 1 ; fi
- if [[ "$(cat ./integration_tests_batlatest/pytest_returncode)" -ne 0 ]] ; then echo "pytest returned non-zero (against latest batsim), aborting" ; exit 1 ; fi
# # Send coverage results to codecov.io
# - nix-env -i gcc
# - mkdir -p merged
# - cp ./batsched/gcno/* ./integration_tests/gcda/* merged/
# - bash <(curl -s https://codecov.io/bash)
# artifacts:
# when: always
# paths:
# - /builds/batsim/batsched/integration_tests
- nix-env -i gcc
- mkdir -p merged
- cp ./batsched/gcno/* ./integration_tests/gcda/* merged/
- bash <(curl -s https://codecov.io/bash)
artifacts:
when: always
paths:
- /builds/batsim/batsched/integration_tests
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment