forked from JCSDA/oops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (41 loc) · 4.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#======================================================================
# Project settings
#======================================================================
env:
global:
- secure: XAv4plDS26a33O9BgTgtj9rZMOENBve3RwPx7+yXal8eQgNo0LzVndXv0KrFelBeom5l7V2dBj8zZ02+VpiohAiUZgEjw4nlZUzgwB/r4nBYKNCyvjFXGEml36l/VkXlgiLIHlLy1AB8XoOZXVaLapQmxC943kDYOkunPZPL0QMJn95Esf3M28GI2HjBZRc1OXru4Z3RqfHFuPUaJWvAlDPSVa9adAxp8ee7fPIOWYPsQVlaW0btlxLgf/2uSl9S2lM1dP1Ulb1vQWB07CXplPTlClpdJ2kFiLyymhd1KSqSBon8mJDE7mKQzq0M7u7vYluDJmzsBr/qCq09PaJD+Yqor+eUxaZYavEgBccuod2W0/nTEJPGntmqLQaHIzHjnYp8nWZbpyv9xdJLzyHttxnSGTOtMPRy8sg4BACrVc21MM9OXGwmqxmDYKktJbQlOiea1OT8v1DvshPX/zCy6ggFsHpqWi/4ghz+f90yLl6cUf4fIVFDWj1qNHYFiocJSm4UDFecph1AB7WZ5cCD8HzM3A5wvkxg6yVXJPOFf0vzpS2wiRdsBqaA/zI60saC7GWpwtnFqeTY2KxWbRFnCPzDmTno5kn0x/UpIMfJhAJXZX0HRUxrdUKsF/121q5vn92mmm5PHl0J6efwTUAjYq/qh/U6roVB+6Etr+F8L8A=
- secure: bNIWwjbDc4e10HoyICFz75Q7vyL6T/sxFBN+KhKl7wkOXC3KehccauxlQ50OF8g4gjLLbAASfidLt7b+LIMlO78mQ3rvKfy0K60R4bhL4SbPU2WLB2mVlhx/ABmutcEuLaJNFwkGGZOCbp751KQ+jQs6fgJjUuaAPcpFVymoYl/hHMTbigbqGIuIc+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z6HxoplIrCebj9L3K91ctXz+rKV3zhRnknO44ySQGCSuv9pT8yUSg9bNSTfI+qu6Q0igBl1xHN/Qm0oN2Hugx3YLWFkPS6w9+SeK+MfVIlvbmeIFCkg=
branches:
only:
- develop
language: cpp
services:
- docker
before_install:
- date
- REPO_SOURCE_DIR=${TRAVIS_BUILD_DIR}/jcsda/src_repo
# create the same file structure on Travis VM and Docker container
- mkdir -p ${TRAVIS_BUILD_DIR}/jcsda/src_repo
# echo branch info
- echo $TRAVIS_PULL_REQUEST
- echo $TRAVIS_PULL_REQUEST_BRANCH
- echo $TRAVIS_BRANCH
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$PR, BRANCH=$BRANCH"
- REPO_SOURCE_DIR=${TRAVIS_BUILD_DIR}/jcsda/src_repo
# test cloning another repo from jcsda-internal
- git clone https://github.com/jcsda-internal/fckit.git ${REPO_SOURCE_DIR}/test
- ls ${REPO_SOURCE_DIR}
- git clone https://github.com/jcsda-internal/jedi-build-package.git ${REPO_SOURCE_DIR}
- docker pull jcsda/docker-clang-mpich-dev
- docker images
script:
- docker run -d -t --env GH_TOKEN=$GH_TOKEN --env AWS_ACCESS_KEY_ID=$aws_access_key_id --env AWS_SECRET_ACCESS_KEY=$aws_secret_access_key --env GH_BRANCH=$BRANCH --name clang_container -v ${REPO_SOURCE_DIR}/jedi-build-package:/jcsda/src_repo jcsda/docker-clang-mpich-dev
- docker exec clang_container bash -c 'mkdir ~/.aws'
- docker exec clang_container bash -c 'echo [default] >> ~/.aws/credentials '
- docker exec clang_container bash -c 'echo aws_access_key_id = $aws_access_key_id >> ~/.aws/credentials'
- docker exec clang_container bash -c 'echo aws_secret_access_key = $aws_secret_access_key >> ~/.aws/credentials'
- docker exec clang_container bash -c 'ls /jcsda/src_repo'
- docker exec clang_container bash -c 'cd /jcsda/src_repo && pip install --user -e .'
- docker exec clang_container bash -c 'cd /jcsda/src_repo && ~/.local/bin/jedi-build --gh-token=$GH_TOKEN -j 4 --env-id=docker-clang --branch-map atlas:release-stable fckit:release-stable -br ${GH_BRANCH} -p oops -vvv -3 -u --submit-dashboard --site TravisCI --abort-on-build-errors --abort-on-test-errors'