Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature ci test travis stages #9

Merged
merged 65 commits into from
Jun 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
4a65919
test stages
fpelliccioni Jun 28, 2018
54b93ef
OSs
fpelliccioni Jun 28, 2018
8d365f3
OSs 2
fpelliccioni Jun 28, 2018
2be2281
OSs 3
fpelliccioni Jun 28, 2018
3eca21e
OSs 4
fpelliccioni Jun 28, 2018
3d917f4
OSs 5
fpelliccioni Jun 28, 2018
c9443dd
OSs 6
fpelliccioni Jun 28, 2018
c3b7eaa
stages test 1
fpelliccioni Jun 28, 2018
bc6a765
stages test 1
fpelliccioni Jun 28, 2018
3bbc174
stages test 2
fpelliccioni Jun 28, 2018
30f8f6e
stages test 3
fpelliccioni Jun 28, 2018
d2904d2
stages test 4
fpelliccioni Jun 28, 2018
269b437
stages test 5
fpelliccioni Jun 28, 2018
5cc22ec
stages test 6
fpelliccioni Jun 28, 2018
4e0d66f
stages test 6
fpelliccioni Jun 28, 2018
e85e521
stages test 7
fpelliccioni Jun 28, 2018
dadcf3e
stages test 8
fpelliccioni Jun 28, 2018
e8d8e32
stages test 9
fpelliccioni Jun 28, 2018
6cdc926
conditional run of jobs
fpelliccioni Jun 28, 2018
f97497d
some changes 10
fpelliccioni Jun 28, 2018
4d1960c
some changes 11
fpelliccioni Jun 28, 2018
8f8f1d6
some changes 12
fpelliccioni Jun 28, 2018
ddc60c3
some changes 13
fpelliccioni Jun 28, 2018
4ab8d51
add versioning functionality
fpelliccioni Jun 29, 2018
cad33ac
add versioning functionality 2
fpelliccioni Jun 29, 2018
985bbc2
add versioning functionality 4
fpelliccioni Jun 29, 2018
1df6142
add versioning functionality 5
fpelliccioni Jun 29, 2018
976fb9f
add versioning functionality 6
fpelliccioni Jun 29, 2018
b77ae48
add versioning functionality 7
fpelliccioni Jun 29, 2018
f15c197
add versioning functionality 8
fpelliccioni Jun 29, 2018
f18159e
add versioning functionality 9
fpelliccioni Jun 29, 2018
a672281
fix for Python 3
fpelliccioni Jun 29, 2018
acbcfec
passing environment variables to docker
fpelliccioni Jun 29, 2018
cc8b1ac
fixes
fpelliccioni Jun 29, 2018
ae0bcde
Merge branch 'feature_ci_test_travis_stages' of github.com:bitprim/se…
fpelliccioni Jun 29, 2018
9e10121
test for travis 1
fpelliccioni Jun 29, 2018
e49a3ce
test for travis 2
fpelliccioni Jun 29, 2018
f18bae4
test for travis 3
fpelliccioni Jun 29, 2018
54f9eda
test for travis 4
fpelliccioni Jun 29, 2018
9f5088a
test for travis 5
fpelliccioni Jun 29, 2018
2f38cd1
test for travis 6
fpelliccioni Jun 29, 2018
4ce3915
test for travis 7
fpelliccioni Jun 29, 2018
ccd7394
test for travis 8
fpelliccioni Jun 29, 2018
56dd4c6
test for travis 9
fpelliccioni Jun 29, 2018
a9cc8ba
test for travis 10
fpelliccioni Jun 29, 2018
7ef3c8e
test for travis 11
fpelliccioni Jun 29, 2018
23aacc5
test for travis 12
fpelliccioni Jun 29, 2018
b239700
test for travis 13
fpelliccioni Jun 29, 2018
e9707c8
test for travis 14
fpelliccioni Jun 29, 2018
a39eaaf
test for travis 15
fpelliccioni Jun 29, 2018
594565a
test for travis 16
fpelliccioni Jun 29, 2018
2d0404c
test for travis 17
fpelliccioni Jun 29, 2018
745963d
test for travis 18
fpelliccioni Jun 29, 2018
a117f0d
test for travis 19
fpelliccioni Jun 29, 2018
834c055
test for travis 20
fpelliccioni Jun 29, 2018
5cb903f
test for travis 21
fpelliccioni Jun 29, 2018
f6955d4
test for travis 22
fpelliccioni Jun 29, 2018
ee0adc8
test for travis 23
fpelliccioni Jun 29, 2018
4848c3b
remove logs
fpelliccioni Jun 29, 2018
1781e0b
test what happens on macOS
fpelliccioni Jun 29, 2018
0e21321
push to repos using CI APIs
fpelliccioni Jun 29, 2018
a0b1922
test for travis 28
fpelliccioni Jun 29, 2018
0df6d76
calling python after activate pyenv on macOS
fpelliccioni Jun 29, 2018
194f046
calling python after activate pyenv on macOS 2
fpelliccioni Jun 29, 2018
64e0722
removing logs
fpelliccioni Jun 29, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ branches:
- /^release-\d+\.\d+\.\d+$/
- /^feature-ci-.+$/
- /^feature_ci_.+$/
- /^feature-appveyor-.+$/
- /^feature_appveyor_.+$/

build: false

Expand Down
252 changes: 196 additions & 56 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@
branches:
only:
# - master
# - /^v\d+\.\d+\.\d+$/
- dev
- /^v\d+\.\d+\.\d+$/
- /^release-\d+\.\d+\.\d+$/
- /^hotfix-\d+\.\d+\.\d+$/
- /^feature-ci-.+$/
- /^feature_ci_.+$/
- /^feature-travis-.+$/
- /^feature_travis_.+$/

linux: &linux
os: linux
Expand All @@ -38,55 +41,6 @@ osx: &osx
os: osx
language: generic

matrix:
include:
# - <<: *linux
# env: PUSH_TO_REPOS=true

# Linux, GCC, libstdc++ ------------------------------------------------------
- <<: *linux
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8
BITPRIM_RUN_TESTS=true

- <<: *linux
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7

- <<: *linux
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=lasote/conangcc6

- <<: *linux
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=lasote/conangcc5

# - <<: *linux
# env: CONAN_GCC_VERSIONS=4.9 CONAN_DOCKER_IMAGE=lasote/conangcc49

# Linux, Clang, libstdc++ ----------------------------------------------------
- <<: *linux
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60

- <<: *linux
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50

- <<: *linux
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=lasote/conanclang40

# - <<: *linux
# env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39

# macOS, apple-Clang, libc++ -------------------------------------------------
- <<: *osx
osx_image: xcode9
env: CONAN_APPLE_CLANG_VERSIONS=9.0
BITPRIM_RUN_TESTS=true

- <<: *osx
osx_image: xcode8.3
env: CONAN_APPLE_CLANG_VERSIONS=8.1

- <<: *osx
osx_image: xcode7.3
env: CONAN_APPLE_CLANG_VERSIONS=7.3

before_install:
- |
if [[ "${TRAVIS_COMMIT_MESSAGE}" = *"[skip travis]"* ]]; then
Expand All @@ -104,26 +58,40 @@ install:
fi

script:
# - python ci_utils/print_version.py
- export BITPRIM_BRANCH="${TRAVIS_BRANCH}"
- git fetch --unshallow
- export BITPRIM_BUILD_NUMBER="$(git describe)"
- echo "${BITPRIM_BUILD_NUMBER}"
# - export BITPRIM_BUILD_NUMBER="$(git describe)"
# - export BITPRIM_BUILD_NUMBER="$(python ci_utils/print_version.py)"
# - export BITPRIM_CONAN_VERSION="${BITPRIM_BUILD_NUMBER}"
# - echo "${BITPRIM_BUILD_NUMBER}"
# - echo "${BITPRIM_CONAN_VERSION}"


- |
echo "${TRAVIS_BRANCH}"
if [[ "${TRAVIS_BRANCH}" = "dev" ]]; then
export BITPRIM_CONAN_CHANNEL="testing"
export BITPRIM_FULL_BUILD=0
elif [[ "${TRAVIS_BRANCH}" = "release"* ]]; then
export BITPRIM_CONAN_CHANNEL="stable"
export BITPRIM_FULL_BUILD=1
elif [[ "${TRAVIS_BRANCH}" = "hotfix"* ]]; then
export BITPRIM_CONAN_CHANNEL="stable"
export BITPRIM_FULL_BUILD=1
elif [[ "${TRAVIS_BRANCH}" = "feature"* ]]; then
export BITPRIM_CONAN_CHANNEL="${TRAVIS_BRANCH}"
export BITPRIM_FULL_BUILD=0
else
export BITPRIM_CONAN_CHANNEL="stable"
export BITPRIM_FULL_BUILD=1
fi
echo "${BITPRIM_CONAN_CHANNEL}"
# echo "${BITPRIM_CONAN_CHANNEL}"
# echo "${BITPRIM_FULL_BUILD}"

# if [ -e conan_channel ] then
# echo "Creating conan_channel file"
# printf "${BITPRIM_CONAN_CHANNEL}" > conan_channel
# if [ ! -f conan_version ]; then
# echo "Creating conan_version file"
# printf "${BITPRIM_BUILD_NUMBER}" > conan_version
# fi


Expand All @@ -137,6 +105,178 @@ script:
./ci_utils/.travis/run.sh
fi

jobs:
include:

# Static Checks ------------------------------------------------------
- stage: static checks
install: skip
# script:
# - chmod +x .travis/push_other_repo.sh
# - ./.travis/push_other_repo.sh

script: echo "Running checks (1)"
# script:
# - export BITPRIM_BRANCH="${TRAVIS_BRANCH}"
# - git fetch --unshallow
# # - export BITPRIM_BUILD_NUMBER="$(git describe)"
# - export BITPRIM_BUILD_NUMBER="$(python ci_utils/print_version.py)"
# - echo "${BITPRIM_BUILD_NUMBER}"

# Unit Tests ------------------------------------------------------
- stage: unit tests
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7 CONAN_UPLOAD=""
BITPRIM_RUN_TESTS=true

# Builds ------------------------------------------------------
# Linux, GCC, libstdc++ ------------------------------------------------------
- stage: build and upload binaries
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
env: CONAN_GCC_VERSIONS=8 CONAN_DOCKER_IMAGE=lasote/conangcc8
if: branch =~ /^(release|hotfix).+$/

- stage: build and upload binaries
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
env: CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=lasote/conangcc7

- stage: build and upload binaries
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
env: CONAN_GCC_VERSIONS=6 CONAN_DOCKER_IMAGE=lasote/conangcc6
if: branch =~ /^(release|hotfix).+$/

- stage: build and upload binaries
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
env: CONAN_GCC_VERSIONS=5 CONAN_DOCKER_IMAGE=lasote/conangcc5
if: branch =~ /^(release|hotfix).+$/


# - stage: build and upload binaries
# os: linux
# sudo: required
# language: python
# python: "3.6"
# services:
# - docker
# env: CONAN_GCC_VERSIONS=4.9 CONAN_DOCKER_IMAGE=lasote/conangcc49
# if: branch =~ /^(release|hotfix).+$/


# Linux, Clang, libstdc++ ----------------------------------------------------
- stage: build and upload binaries
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
env: CONAN_CLANG_VERSIONS=6.0 CONAN_DOCKER_IMAGE=lasote/conanclang60

- stage: build and upload binaries
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
env: CONAN_CLANG_VERSIONS=5.0 CONAN_DOCKER_IMAGE=lasote/conanclang50
if: branch =~ /^(release|hotfix).+$/

- stage: build and upload binaries
os: linux
sudo: required
language: python
python: "3.6"
services:
- docker
env: CONAN_CLANG_VERSIONS=4.0 CONAN_DOCKER_IMAGE=lasote/conanclang40
if: branch =~ /^(release|hotfix).+$/

# - stage: build and upload binaries
# os: linux
# sudo: required
# language: python
# python: "3.6"
# services:
# - docker
# env: CONAN_CLANG_VERSIONS=3.9 CONAN_DOCKER_IMAGE=lasote/conanclang39

# macOS, apple-Clang, libc++ -------------------------------------------------
- stage: build and upload binaries
os: osx
language: generic
osx_image: xcode9
env: CONAN_APPLE_CLANG_VERSIONS=9.0 BITPRIM_RUN_TESTS=true

- stage: build and upload binaries
os: osx
language: generic
osx_image: xcode8.3
env: CONAN_APPLE_CLANG_VERSIONS=8.1
if: branch =~ /^(release|hotfix).+$/

- stage: build and upload binaries
os: osx
language: generic
osx_image: xcode7.3
env: CONAN_APPLE_CLANG_VERSIONS=7.3
if: branch =~ /^(release|hotfix).+$/


# Push to repos ------------------------------------------------------
- stage: push to repos
install: skip
# script: echo "Running push to repos"
script:
- chmod +x .travis/push_other_repo.sh
- ./.travis/push_other_repo.sh


# # Integration Tests ------------------------------------------------------
# - stage: integration tests
# install: skip
# script: echo "Running integration tests (Guille)"


# - stage: deploy to staging
# install: skip
# script: skip
# - stage: test staging
# install: skip
# script: 'curl http://sf-stages-staging.herokuapp.com'
# - stage: deploy to production
# install: skip
# script: skip
# - stage: test production
# install: skip
# script: 'curl http://sf-stages-production.herokuapp.com'


notifications:
email: false
webhooks:
Expand Down
Loading