forked from fsprojects/fantomas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (25 loc) · 1.13 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
language: minimal
services:
- docker
sudo: required
jobs:
include:
- stage: "CI"
before_install:
- docker pull dcurylo/fsharp-mono-netcore:2.1.503
- chmod 755 ./*.sh
script: docker run -v "${PWD}:/var/fantomas" -w "/var/fantomas" dcurylo/fsharp-mono-netcore:2.1.503 bash -c "./build.sh"
- stage: "TestExternalProjects"
before_install:
- docker pull dcurylo/fsharp-mono-netcore:2.1.503
- chmod 755 ./*.sh
script: docker run -v "${PWD}:/var/fantomas" -w "/var/fantomas" dcurylo/fsharp-mono-netcore:2.1.503 bash -c "./build.sh -t TestExternalProjects"
if: branch = test-external-projects
- stage: "trigger fantomas-ui pipeline"
script:
- curl -X POST -F token=$FANTOMAS_UI_TOKEN -F ref=preview -F "variables[TRIGGER]=true" https://gitlab.com/api/v4/projects/8920076/trigger/pipeline
if: branch = master
- stage: "trigger fantomas-ui preview-ng pipeline"
script:
- curl -X POST -F token=$FANTOMAS_UI_TOKEN -F ref=preview-ng -F "variables[TRIGGER]=true" https://gitlab.com/api/v4/projects/8920076/trigger/pipeline
if: branch = master