.gitlab-ci.yml 2.22 KB
Newer Older
Drew's avatar
Drew committed
1
stages:
Drew's avatar
Drew committed
2
- test
Drew's avatar
Drew committed
3
- package
Drew's avatar
Drew committed
4
- deploy
Drew's avatar
Drew committed
5 6

osx:
Drew's avatar
Drew committed
7
    stage: test
Drew's avatar
Drew committed
8
    script:
Drew's avatar
Drew committed
9
      - atpm fetch
Drew's avatar
Drew committed
10 11 12
      - atbuild check
      
    tags:
Drew's avatar
Drew committed
13
      - xcode8
Drew's avatar
Drew committed
14 15
      - openswift
      - atbuild
Drew's avatar
Drew committed
16
      - atpm
Drew's avatar
Drew committed
17 18 19

linux:
    stage: test
Drew's avatar
Drew committed
20
    script:
Drew's avatar
Drew committed
21
      - apt-get update
Drew's avatar
Drew committed
22 23
      - apt-get install atbuild atpm -y
      - atpm fetch
24
      - atbuild coretest
Drew's avatar
Drew committed
25 26 27

    tags:
      - autoscale-linux
Drew's avatar
Drew committed
28
    image: drewcrawford/buildbase:latest
Drew's avatar
Drew committed
29

Drew's avatar
Drew committed
30 31 32 33 34
documentation:
  stage: package
  script:
    - cd docs
    - make html
35
    - make dashdoc
Drew's avatar
Drew committed
36 37 38 39 40
  tags:
    - autoscale-linux

  artifacts:
    paths:
41 42
      - docs/_build/html
      - docs/_build/Caroline.docset
Drew's avatar
Drew committed
43 44 45

  image: drewcrawford/anarchy-sphinx:latest

Drew's avatar
Drew committed
46 47 48 49 50 51 52
deploydocs:
  stage: deploy
  image: python:latest
  dependencies:
    - documentation
  script:
  - pip install awscli
Drew's avatar
Drew committed
53
  - aws s3 cp docs/_build/html/ s3://$DOC_BUCKET_NAME/ --recursive --acl "public-read"
Drew's avatar
Drew committed
54 55 56 57

  when: manual
  variables:
    DOC_BUCKET_NAME: "caroline-docs.sealedabstract.com"
Drew's avatar
Drew committed
58 59
  tags:
    - autoscale-linux
Drew's avatar
Drew committed
60 61


Drew's avatar
Drew committed
62
osxcorepackage:
Drew's avatar
Drew committed
63 64
    stage: package
    script:
Drew's avatar
Drew committed
65
      - atpm fetch
66
      - atbuild core-framework --toolchain xcode --configuration release
Drew's avatar
Drew committed
67 68
      
    tags:
Drew's avatar
Drew committed
69
      - xcode8
Drew's avatar
Drew committed
70 71
      - openswift
      - atbuild
Drew's avatar
Drew committed
72
      - package-framework
Drew's avatar
Drew committed
73
      - atpm
Drew's avatar
Drew committed
74 75

    artifacts:
Drew's avatar
Drew committed
76
      paths:
Drew's avatar
Drew committed
77
        - bin/CarolineCore*.tar.xz
Drew's avatar
Drew committed
78

79 80 81
osxtoolpackage:
    stage: package
    script:
Drew's avatar
Drew committed
82
      - atpm fetch
83 84 85
      - atbuild package-statictool --configuration release
      
    tags:
Drew's avatar
Drew committed
86
      - xcode8
87 88 89
      - openswift
      - atbuild
      - package-homebrew
Drew's avatar
Drew committed
90
      - atpm
91 92 93 94 95 96

    artifacts:
      paths:
        - bin/*.tar.xz
        - bin/*.rb

Drew's avatar
Drew committed
97 98 99
linuxtoolpackage:
    stage: package
    script:
Drew's avatar
Drew committed
100
      - apt-get update
Drew's avatar
Drew committed
101 102
      - apt-get install atbuild atpm package-deb -y
      - atpm fetch
Drew's avatar
Drew committed
103 104 105 106 107 108 109 110 111 112
      - atbuild package-statictool --configuration release
      
    tags:
      - autoscale-linux

    artifacts:
      paths:
        - bin/*.tar.xz
        - bin/*.deb

Drew's avatar
Drew committed
113
    image: drewcrawford/buildbase:latest
Drew's avatar
Drew committed
114

Drew's avatar
Drew committed
115
ioscorepackage:
Drew's avatar
Drew committed
116 117
    stage: package
    script:
Drew's avatar
Drew committed
118
      - atpm fetch
119
      - atbuild core-framework --toolchain xcode --platform ios --configuration release
Drew's avatar
Drew committed
120 121
      
    tags:
Drew's avatar
Drew committed
122
      - xcode8
Drew's avatar
Drew committed
123 124
      - openswift
      - atbuild
Drew's avatar
Drew committed
125
      - package-framework
Drew's avatar
Drew committed
126
      - atpm
Drew's avatar
Drew committed
127

Drew's avatar
Drew committed
128
    artifacts:
Drew's avatar
Drew committed
129
      paths:
Drew's avatar
Drew committed
130
        - bin/CarolineCore*.tar.xz