forked from NOAA-EMC/saber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (36 loc) · 3.94 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
#======================================================================
# Project settings
#======================================================================
env:
global:
- secure: RHwzxA4rRtHo2xyj6t5euy/tIqeHzOyTNnjCewEVHHaoE2ZebY0mwUdozqumBLs5Vsa+1fzzcMSOdg8uostMyAwp97okmcDc3I5VFhnEZIb51BdvTfnWSQQDp3oM8/urNX45o/rcyo4W/+TE8BOGFEt9E0wSN3tWn6k1bwc9DGBaL1YMjMdoX+i0ErVhve/vyc3a1/SxrUjfTk/rNJQU7MHiuCT2Atrak/y+WVTj24aBeu3ud++tc9IgPHpPRjTV2wSO1xCFHBjArUYIYk12vAuTz5VX7q9iL7Cu764sk7C8OsWw6XiIukRbEWPijFTYcmjaIG5MRJ9BUddtgeiqPUP/L2yvPKjTroff17b95ouDQ2abtmNtVP1gzmH3G94F9v7xMpFpt/WhuuvFVHAoP1x4PvgfDrsT2s0AXXvHreQV5VjcKK9hAuLUmshEQrFPKP8j7PCDHnvOoEwEbsW1rkwUTzHau3K+IsRtD75VgySuRFSEAxXdmF7JMu6c0Ep31W2o07Ux3H/ApYhrAF/0n8xJVU04l6EnUWs6hP0zB/+2YkvXSc4vFrY/Nb6HVyAU0Darx6JN2rzFNLueycSrIPIJH3zUavHa2dWIwpK2Q+xA/T0Nvk6yqhf8pyANjA7RrjvIxxDZe2CPK9lixp4Yig85gMqnc/ZY+9LQta6KvLA=
- secure: Vp34k7oaVeYtY2k4F0hWXCFnAvP2a3PTpAcHxfL6gtAmUkVub1IZIoZTdQZRnZGwGHYEtkL96e5MSuPtKXMYECvloPNaSPnzZsAO+MH8weSY60gRLQbkzaTr32oLoNAqCcvYCKbEeIGRvxy4jS8fDFPgTh4aWWKAp8LF5JNVg47mJCr2qXpAGx6lMdp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03zcYpGCPXPAj8ZY0rim0G1qpXfbNmIhXKwFNAdV5d+9gb2zl2oGI/SLEAxfYPvkMpi3Mg1550pta1m3oMGVtcqGABWNf175YNgHXuYL1/tevE5EDDyk=
branches:
only:
- develop
language: cpp
services:
- docker
before_install:
- 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"
- pwd
- ls
- cd CI
- REPO_SOURCE_DIR=${TRAVIS_BUILD_DIR}/jcsda/src_repo
- git clone -b feature/parallel-testing https://${GH_TOKEN}@github.com/jcsda/jedi-build-package.git ${REPO_SOURCE_DIR}/jedi_build_package
- 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 GH_BRANCH=$BRANCH --env AWS_SECRET_ACCESS_KEY=$aws_secret_access_key --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 .'
- travis_wait 110 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 saber -vvv -3 -u --submit-dashboard --site TravisCI --abort-on-build-errors --abort-on-test-errors'